This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var a = [":bowtie:",":smile:",":laughing:",":blush:",":smiley:",":relaxed:",":smirk:",":heart_eyes:",":kissing_heart:",":kissing_closed_eyes:",":flushed:",":relieved:",":satisfied:",":grin:",":wink:",":stuck_out_tongue_winking_eye:",":stuck_out_tongue_closed_eyes:",":grinning:",":kissing:",":kissing_smiling_eyes:",":stuck_out_tongue:",":sleeping:",":worried:",":frowning:",":anguished:",":open_mouth:",":grimacing:",":confused:",":hushed:",":expressionless:",":unamused:",":sweat_smile:",":sweat:",":disappointed_relieved:",":weary:",":pensive:",":disappointed:",":confounded:",":fearful:",":cold_sweat:",":persevere:",":cry:",":sob:",":joy:",":astonished:",":scream:",":neckbeard:",":tired_face:",":angry:",":rage:",":triumph:",":sleepy:",":yum:",":mask:",":sunglasses:",":dizzy_face:",":imp:",":smiling_imp:",":neutral_face:",":no_mouth:",":innocent:",":alien:",":yellow_heart:",":blue_heart:",":purple_heart:",":heart:",":green_heart:",":broken_heart:",":heartbeat:",":heartpulse:",":two_hearts:",":revolving_hearts:"," |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"pistes":[{"type":"sqr","notes":[{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":9,"o":2,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":9,"o":2,"g":0,"type":0}],"volume":0.1,"harmonic":0},{"type":"arp","notes":[{"n":9,"o": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! | |
| * | |
| * welcome to wavepot | |
| * ------------------ | |
| * | |
| * this is a live editor. you create a function named `dsp` | |
| * that accepts the parameter `t`, the coefficient of time, | |
| * which you use to generate a single sample (range -1..1) | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! | |
| * | |
| * welcome to wavepot | |
| * ------------------ | |
| * | |
| * this is a live editor. you create a function named `dsp` | |
| * that accepts the parameter `t`, the coefficient of time, | |
| * which you use to generate a single sample (range -1..1) | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! | |
| * | |
| * welcome to wavepot | |
| * ------------------ | |
| * | |
| * this is a live editor. you create a function named `dsp` | |
| * that accepts the parameter `t`, the coefficient of time, | |
| * which you use to generate a single sample (range -1..1) | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"pistes":[{"type":"sqr","notes":[{"n":0,"o":4,"g":1,"type":0},{"n":4,"o":4,"g":0,"type":0},{"n":0,"o":4,"g":1,"type":0},{"n":4,"o":4,"g":0,"type":0},{"n":0,"o":4,"g":1,"type":0},{"n":4,"o":4,"g":0,"type":0},{"n":0,"o":4,"g":1,"type":0},{"n":4,"o":4,"g":0,"type":0},{"n":5,"o":4,"g":1,"type":0},{"n":5,"o":4,"g":0,"type":0},{"n":5,"o":4,"g":1,"type":0},{"n":7,"o":4,"g":0,"type":0},{"n":5,"o":4,"g":1,"type":0},{"n":7,"o":4,"g":0,"type":0},{"n":5,"o":4,"g":1,"type":0},{"n":7,"o":4,"g":0,"type":0},{"n":7,"o":4,"g":1,"type":0},{"n":4,"o":4,"g":0,"type":0},{"n":7,"o":4,"g":1,"type":0},{"n":4,"o":4,"g":0,"type":0},{"n":7,"o":4,"g":1,"type":0},{"n":4,"o":4,"g":0,"type":0},{"n":7,"o":4,"g":1,"type":0},{"n":4,"o":4,"g":0,"type":0},{"n":5,"o":4,"g":1,"type":0},{"n":11,"o":4,"g":0,"type":0},{"n":5,"o":4,"g":1,"type":0},{"n":7,"o":4,"g":0,"type":0},{"n":5,"o":4,"g":1,"type":0},{"n":0,"o":5,"g":0,"type":0},{"n":5,"o":4,"g":1,"type":0},{"n":7,"o":4,"g":0,"type":0}],"volume":0.1,"harmonic":0},{"type":"sin","notes":[{"n":0,"o" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function loop(framerate,update,draw) { | |
| //Update and draw are callbacK function | |
| var requestedInterval = 1000/framerate; | |
| var timeSinceLastUpdate = 0; | |
| var lastFrameTimeStamp = 0; | |
| function loopFunction() { | |
| requestAnimationFrame(loopFunction); | |
| var now = Date.now(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function carToPol(vec) { | |
| var r = Math.sqrt(vec.x * vec.x + vec.y * vec.y); | |
| var a = Math.atan2(vec.y, vec.x); | |
| return { | |
| r:r, | |
| a:a | |
| } | |
| } | |
| function polToCar (coor) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var transpose = 24; | |
| var bpm = 240; // Beats per minute | |
| var spb = 60/bpm; // Second per beat | |
| function note(n, octave){ | |
| n += transpose; | |
| return Math.pow(2, (n - 33 + (12 * (octave || 0))) / 12) * 440; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var transpose = 24; | |
| var bpm = 240; // Beats per minute | |
| var spb = 60/bpm; // Second per beat | |
| function note(n, octave){ | |
| n += transpose; | |
| return Math.pow(2, (n - 33 + (12 * (octave || 0))) / 12) * 440; |