MAPLE-Lab / auditory-research-suite

Automatically exported from code.google.com/p/auditory-research-suite
0 stars 2 forks source link

Use of Percussion Midi Channel for Rhythm #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1.3.    Program change.  In order to run some experiments, we need access to a 
variety of useable percussion sounds.  While we have some “standard” ones 
available currently through the General MIDI bank (i.e. woodblock, Taiko Drum, 
Melodic Tom), we need to access the special bank of percussion sounds reserved 
on channel 10.  According to this table and some basic reading, it looks like 
it is simple enough to switch channels in MIDI, we just need a “hook” to 
access that through our interface.  This page might help, but we’re not 
entirely sure: 
http://www.indiana.edu/~emusic/etext/MIDI/chapter3_MIDI4.shtml  

This parameter would be set on an experiment-by-experiment (rather than 
trial-by-trial) basis.  So we wouldn’t need to vary this within an experiment 
– each experiment would just specify different values in the properties file.

Original issue reported on code.google.com by guse...@datamininglab.com on 2 Oct 2013 at 3:20

GoogleCodeExporter commented 9 years ago

Original comment by guse...@datamininglab.com on 2 Oct 2013 at 3:24

GoogleCodeExporter commented 9 years ago

Original comment by guse...@datamininglab.com on 2 Oct 2013 at 3:30

GoogleCodeExporter commented 9 years ago

Original comment by guse...@datamininglab.com on 2 Oct 2013 at 4:27

GoogleCodeExporter commented 9 years ago

Original comment by guse...@datamininglab.com on 2 Oct 2013 at 4:29

GoogleCodeExporter commented 9 years ago
This change is slightly more complex than just adding a hook to change the midi 
channel. 

The percussion channel works differently, in that instruments are specified via 
Notes, instead of by an instrument  number.

Making this change means that all Pitch values specified the properties file 
will be interpreted as drum kit instruments, instead of as pitches. 

Original comment by zach.br...@datamininglab.com on 6 Nov 2013 at 11:14

GoogleCodeExporter commented 9 years ago
The "gmBank" property was renamed to "instrumentNumber", which is more 
descriptive of its function. 

A "middleC" property was added to ease the translation between Soundbank 
labelings, allowing the value of Middle C to be set to any value, and other 
pitches will be read relative to that value. (MIDI systems usually label Middle 
C as "C3", "C4", or "C5".

A "usePercussionChannel" property has been added, allowing access to the 
percussion sounds of a soundbank.
If set to false, everything works as previously. 
If set to true:
- Pitches are used to select drum-kit instruments, as specified in the the 
instruments lists that should come with a Soundbank. 
- The "instrumentNumber" property selects the specific drum-kit to use, which 
should be listed with a Soundbank.

Original comment by zach.br...@datamininglab.com on 20 Nov 2013 at 8:42