Skip to content
Snippets Groups Projects
Commit 5c44eb68 authored by Jean-Marie  FAVREAU's avatar Jean-Marie FAVREAU
Browse files

Merge branch 'master' of gitlab.isima.fr:favreau/basicsynth

parents 774ffe51 e9abd521
Branches
No related tags found
No related merge requests found
flic2.py 0 → 100755
#!/usr/bin/env python
# coding: utf8
# -*- coding: utf-8 -*-
from basicsynth import BasicSequenceur
s = BasicSequenceur(1, 117, 0.7, 0)
flic2 = [ [ [s.mi(4), s.croche],
[s.sol(4), s.doublecrochepointee],
[s.mi(4), s.doublecroche],
[s.mi(4), s.triplecroche],
[s.la(4), s.doublecroche],
[s.mi(4), s.doublecroche],
[s.red(4), s.doublecroche],
[s.mi(4), s.croche],
[s.si(4), s.doublecrochepointee],
[s.mi(4), s.doublecroche],
[s.mi(4), s.triplecroche],
[s.do(3), s.doublecroche],
[s.si(4), s.doublecroche],
[s.sol(4), s.doublecroche],
[s.mi(4), s.doublecroche],
[s.si(4), s.doublecroche],
[s.mi(3), s.doublecroche],
[s.mi(4), s.triplecroche],
[s.red(4), s.doublecroche],
[s.red(4), s.triplecroche],
[s.si(1), s.doublecroche],
[s.fad(4), s.doublecroche],
[s.mi(4), s.doublecroche]
] ]
s.genererMelodie(flic2, "flic2.wav")
#!/usr/bin/env python
# coding: utf8
# -*- coding: utf-8 -*-
from basicsynth import BasicSequenceur
s = BasicSequenceur(1, 117, 0.7, 0)
happy = [ [ [s.do(2), s.crochepointee],
[s.do(2), s.doublecroche],
[s.re(2), s.noire],
[s.do(2), s.noire],
[s.fa(2), s.noire],
[s.mi(2), s.blanche],
[s.do(2), s.crochepointee],
[s.do(2), s.doublecroche],
[s.re(2), s.noire],
[s.do(2), s.noire],
[s.sol(2), s.noire],
[s.fa(2), s.blanche],
[s.do(2), s.crochepointee],
[s.do(2), s.doublecroche],
[s.do(3), s.noire],
[s.la(2), s.noire],
[s.fa(2), s.noire],
[s.mi(2), s.noire],
[s.re(2), s.noire],
[s.sib(2), s.crochepointee],
[s.sib(2), s.doublecroche],
[s.la(2), s.noire],
[s.fa(2), s.noire],
[s.sol(2), s.noire],
[s.fa(2), s.blanchepointee]
] ]
s.genererMelodie(happy, "happy.wav")
#!/usr/bin/env python
# coding: utf8
# -*- coding: utf-8 -*-
from basicsynth import BasicSequenceur
s = BasicSequenceur(1, 130, 0.7, 0)
rainbow = [ [ [s.do(3), s.blanche],
[s.do(3), s.noire],
[s.si(2), s.noire],
[s.sol(2), s.croche],
[s.la(2), s.croche],
[s.si(2), s.noire],
[s.do(3), s.blanche],
[s.do(2), s.noirepointee],
[s.la(2), s.croche],
[s.sol(2), s.blanche],
s.pause(),
[s.la(1), s.blanche],
[s.fa(2), s.blanche],
[s.mi(2), s.noire],
[s.do(2), s.croche],
[s.re(2), s.croche],
[s.mi(2), s.noire],
[s.fa(2), s.noire],
[s.re(2), s.noire],
[s.sol(2), s.croche],
[s.si(2), s.croche],
[s.do(2), s.croche],
[s.re(2), s.noirepointee],
[s.do(2), s.croche]
] ]
s.genererMelodie(rainbow, "rainbow.wav")
#!/usr/bin/env python
# coding: utf8
# -*- coding: utf-8 -*-
from basicsynth import BasicSequenceur
s = BasicSequenceur(1, 117, 0.7, 0)
stair = [ [
[s.la(2), s.croche],
[s.do(3), s.croche],
[s.mi(3), s.croche],
[s.la(3), s.croche],
[[s.fad(2), s.si(3)], s.croche],
[s.mi(3), s.croche],
[s.do(3), s.croche],
[s.si(3), s.croche],
[[s.fa(2), s.do(4)], s.croche],
[s.mi(3), s.croche],
[s.do(3), s.croche],
[s.do(4), s.croche],
[[s.fad(2), s.fad(3)], s.croche],
[s.re(3), s.croche],
[s.la(2), s.croche],
[s.fa(3), s.croche],
[[s.fa(2), s.mi(3)], s.croche],
[s.do(3), s.croche],
[s.la(2), s.croche],
[s.do(3), s.noire],
[s.mi(3), s.croche],
[s.do(3), s.croche],
[s.la(2), s.croche],
[[s.si(1), s.sol(2), s.si(2)], s.croche],
[[s.la(2), s.do(3)], s.croche],
[[s.la(1), s.la(2)], s.blanche]
] ]
s.genererMelodie(stair, "stair.wav")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment