| The Following User Says Thank You to aspidites For This Useful Post: | ||
|
|
2010-06-14
, 18:20
|
|
|
Posts: 1,161 |
Thanked: 1,707 times |
Joined on Jan 2010
@ Denmark
|
#62
|
|
|
2010-06-14
, 18:30
|
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#63
|
@mikec 60 bpm is 60 hits in a min. so if it's set to that the bpm should work correctly, havn't tested it myself with a timer yet. It's wierd with the multiple sounds not playing at the same time, hope you can fix it?

|
|
2010-06-14
, 18:33
|
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#64
|
Until you get it wrapped with ctypes, you could always call http://wildmidi.sourceforge.net/?manpage=wildmidi from subprocess.Popen()

|
|
2010-06-14
, 19:53
|
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#65
|
The beat engine seems to have some issue with playing more than 1 sample which has the same timing.
E.g. if you set up the hi-hat and snare to both play on beats 1, 5, 9 ,13 then the hi-hat and snare samples are not played simultaneously. It seems like the snare sample is not played until the hi-hat sample has finished playing.
Is there some issue with playing two or more samples simultaneously in your implementation? Or am I the only one having this issue?
|
|
2010-06-15
, 03:58
|
|
Posts: 133 |
Thanked: 138 times |
Joined on Nov 2007
|
#66
|
| The Following User Says Thank You to generationally For This Useful Post: | ||
|
|
2010-06-15
, 05:55
|
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#67
|
@aspidties anychance you could knock up a bit of pythin code as an example of playing a note
My biggest bug bear with maesynth at the moment is messing with wav files. If I could just pull in a midi instrument and play it.......
import time
import fluidsynth
fs = fluidsynth.Synth()
fs.start()
sfid = fs.sfload("example.sf2")
fs.program_select(0, sfid, 0, 0)
fs.noteon(0, 60, 30)
fs.noteon(0, 67, 30)
fs.noteon(0, 76, 30)
time.sleep(1.0)
fs.noteoff(0, 60)
fs.noteoff(0, 67)
fs.noteoff(0, 76)
time.sleep(1.0)
fs.delete()
|
|
2010-06-15
, 13:15
|
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#68
|
pyFluidSynth seems like it's pretty straightforward
Code taken from http://code.google.com/p/pyfluidsynth/ . Explanation of code is there as well.Code:import time import fluidsynth fs = fluidsynth.Synth() fs.start() sfid = fs.sfload("example.sf2") fs.program_select(0, sfid, 0, 0) fs.noteon(0, 60, 30) fs.noteon(0, 67, 30) fs.noteon(0, 76, 30) time.sleep(1.0) fs.noteoff(0, 60) fs.noteoff(0, 67) fs.noteoff(0, 76) time.sleep(1.0) fs.delete()
|
|
2010-11-03
, 08:57
|
|
|
Posts: 423 |
Thanked: 486 times |
Joined on Nov 2009
@ London, England
|
#69
|
|
|
2010-11-18
, 08:43
|
|
|
Posts: 1,103 |
Thanked: 368 times |
Joined on Oct 2010
@ india, indore
|
#70
|
aspidites | blog | aspidites@inbox.com