To add sound in an HTML page: You have to call the file adn.js Then you must change the value in the acoustic brick named "m1"... to control the different acoustic dimensions. Then it is necessary to position the acoustic bricks in "don". In the end, it is necessary to count how many acoustic bricks there are. You must change the last value of each brick that indicates how many bricks there are. Change the limit value in uiu, the number of bricks plus 1. Change the limit value in ui, the number of bricks
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <a href="mailto:pierre.joc.andre@gmail.com">Contact et support: Joris Abadie</a> <br><br> <script type="text/javascript" src="adn.js"></script> </body> </html>
var m1 = [1, 220, 100, 0, 0, 1, 130, 0, 0, 30, 100, 2, 0, 1, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 2]; var m2 = [1, 220, 20, 0, 0, 1, 130, 0, 0, 30, 180, 2, 0, 1, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 2]; var don = { 1: m1, 2: m1, 3: m2, 4: m2, 5: m1 } var total =new Array; var total1 =new Array; for(var uiu= 1; uiu < 6; uiu++) { total[uiu -1] = "don"+[uiu]+"n"; total1[uiu -1]=don[uiu]; } for(var ui= 0; ui < 5; ui++) { for(var i= 0; i < 75; i++) { var nouveauinput; function ajouteElemen() { var body = document.body || document.getElementsByTagName('body')[0], nouveauinput = document.createElement("input"); nouveauinput.setAttribute("type", "number"); nouveauinput.setAttribute("id", total[ui]+i); nouveauinput.setAttribute("value", total1[ui][i]); nouveauinput.setAttribute("style", "display: none;"); body.insertBefore(nouveauinput,body.childNodes[0]); } ajouteElemen(); } }
indication:
44100 unit width is equal to 1 second.
The man can not hear over 40 musical notes per second.
An acoustic brick contains 75 numerical values, named from donne0 to donne74.
The possible values for the amplitude "height" are 30 to 220, for duration "width" from 2 to 250
number of repetitions of the total form : donne71
number of Wave front: donne11
Wave front 1
Wave front 1 height : donne1
Wave front 1 width: donne2
Wave front 1 height repeat: donne3
Wave front 1 width for height stays in place:: donne4
Wave front 1 number of stays in place: donne72
Wave front 1 height variation subtracted: donne5
Wave front 1 limit of the height variation: donne6
Wave front 1 width variation subtracted: donne7
Wave front 1 limit of the width variation: donne8
Wave front 2
Wave front 2 height : donne9
Wave front 2 width:donne10
Wave front 2 width for height stays in place: donne12
Wave front 2 number of stays in place: donne73
Wave front 2 height variation added: donne13
Wave front 2 limit of the height variation: donne14
Wave front 2 width variation subtracted: donne15
Wave front 2 limit of the width variation: donne16
Wave front 3
Wave front 3 height repeat: donne17
Wave front 3 height : donne18
Wave front 3 width: donne19
Wave front 3 height repeat: donne20
Wave front 3 width for height stays in place: donne21
Wave front 3 height variation subtracted: donne22
Wave front 3 limit of the height variation: donne23
Wave front 3 width variation subtracted: donne24
Wave front 3 limit of the width variation: donne25
Wave front 4
Activation du mode Wave front 4 en position 1: donne26
Wave front 4 height : donne27
Wave front 4 width: donne28
Wave front 4 height repeat: donne29
Wave front 4 width for height stays in place:donne30
Wave front 4 height variation added: donne31
limit of the height variation: donne32
width variation subtracted: donne33
limit of the width variation: donne34
Wave front 5
Activation du mode Wave front 5 en position 1: donne35
height : donne36
width: donne37
height repeat: donne38
width for height stays in place: donne39
height variation subtracted: donne40
limit of the height variation: donne41
width variation subtracted: donne42
limit of the width variation: donne43
Wave front 6
Activation du mode Wave front 6 en position 1: donne44
height : donne45
width: donne46
height repeat: donne47
width for height stays in place: donne48
height variation added: donne49
limit of the height variation added: donne50
width variation subtracted: donne51
limit of the width variation: donne52
Make surfing an audio (unicorn, White work)
Activation du mode surf en position 1: donne53
height delta (+/- 128): donne54
width:donne55
height repeat:donne56
width for height stays in place: donne57
height variation added: donne58
limit of the height variation: donne59
width variation: donne60
limit of the width variation: donne61
case donne53 egal 2 : Enabling surf mode en inversion de durée
height delta (+/- 128): donne54
Wave front 1 width: donne2
Wave front 2 width: donne10
height repeat:donne56
case donne53 egal 3 : Enabling surf mode en inversion assymetrique de durée 3 fronts
Wave front 1 width: donne2
Wave front 2 width: donne10
Wave front 3 width: donne19
height repeat:donne56
case donne53 egal 4 : Enabling surf mode en inversion symetrique de durée 3 fronts
Wave front 1 width: donne2
Wave front 2 width: donne10
Wave front 3 width: donne19
height repeat:donne56
case donne53 egal 5 : Enabling surf mode en inversion assymetrique de durée 4 fronts
Wave front 1 width: donne2
Wave front 2 width: donne10
Wave front 3 width: donne19
Wave front 4 width: donne28
height repeat:donne56
case donne53 egal 6 : Enabling surf mode en inversion symetrique de durée 4 fronts
Wave front 1 width: donne2
Wave front 2 width: donne10
Wave front 3 width: donne19
Wave front 4 width: donne28
height repeat:donne56
case donne53 egal 7 : Enabling surf mode in symmetrical inversion of duration 5 fronts
Wave front 1 width: donne2
Wave front 2 width: donne10
Wave front 3 width: donne19
Wave front 4 width: donne28
Wave front 5 width: donne37
height repeat:donne56
Final inertia manager
Activation du mode inertia en position 1: done62
height : donne63
width: donne64
height repeat: donne65
width for height stays in place: donne66
height variation: donne67
limit of the height variation: donne68
width variation: donne69
limit of the width variation: donne70
donne74 Number of generated sound forms
source
source via github
Audio example 1
Audio example 2
Audio example 3
Audio example 4
Audio example 5
Audio example 6
Audio example 7
8, Tutorial for composers, how to build 6 octaves and more on the same form of musical note
9, Tutorial for composers, how to build duration on the same form of musical note
10, Tutorial for composers, how to build octaves of musical notes with assynchronous fronts
11, Tutorial for composers, how to build octaves
12, Tutorial for composers, how to build octaves
13, Tutorial for composers, Effect of light between the movements of the branches of the oak, varying donne71
14, Tutorial for composers, Variation in duration
15, Tutorial for composers, 8 musical bricks, in 48 musical notes each, DRUM
15, Tutorial for composers, 8 musical bricks, in 48 musical notes each, Flute
15, Tutorial for composers, 8 musical bricks, in 48 musical notes each, Organ
15, Tutorial for composers, 8 musical bricks, in 48 musical notes each, piano 1
15, Tutorial for composers, 8 musical bricks, in 48 musical notes each, guitar 1
Tutoriel en français issus de la conférence LAC2017
https://donate.mozilla.org/en-US