Sample programs

The included sample programs can be used as is or with a little modification. Or they can be used as examples.

AddFourthNote
To be able to play 4 note chords like C7, the style must contain at least 4 different notes in its tracks. If not, you will not be able to hear the difference between a C and a C7. Very many of the available styles that do not originate from Yamaha keyboards, have only 3 notes. This program will check if all the main variations contain a fourth note. If not, each first note is changed to a fourth note (C to B). In OMB and Yamaha keyboards a fourth will be played as a first note in a C and as a fourth note in a C7.

AddMeasures
Styles with very short loops may sound a bit boring. This program will select main parts in a style that are less than 4 measures long. It will then double the lenght and copy the notes to the extended length. While copying the notes it will change the pitch of the notes randomly to other pitches that are valid notes (represented by ChordNote1 etc.). This sample program contains a GoTo..Label construction and uses the Random function to generate random pitch values.

AuditionStyles
When you have received a lot of new styles you may want to organise them in your style folders (if you like them) or remove them (if they're of no use to you). This program will play the main variations of each style and then you are prompted for a code for the folder where this style should go to. You can also type play to play the style again or skip to exclude the style. If an invalid code is entered then a list of folders is displayed. After that you can type a new name for the style. If no new name is entered then the original name is maintained. If no extension is included then .sty will be added to the new name (an example of the StringPosition and Concatenate functions). You will have to edit this program to change the foldernames.

AvarageLoudness
Styles that you get from different sources may vary a lot in loudness. This is a problem when you switch from one style to another. This program increases or decreases the avarage loudness of a style to standard values, while maintaining the relative loudness between tracks and parts. Both volumes and velocities are adjusted to get an new avarage value of 90. You can customize this value. If the diffences in loudness between tracks and parts are undesired then use the FixedLoudness sample program.

BongosAndCongas
Some styles (often Arabian) have drumtracks made for drumsets that don't match GM and produce very awkward sounds. This program will replace all the drumsounds with bongo's and conga's. It gives a neutral and acceptable percussion.

FixedLoudness
A rather drastic way to standardize the loudness of each style. Each volume controller is set to 90. Each note-on velocity is set to a random value between 80 thru 99 (for some human feel) This program may be useful if the difference in loudness between different parts and tracks are incorrect. To maintain these differences and just change the overall loudness use the AvarageLoudness sample program.

IncreaseLoudnessHigherVariations
In a lot of styles there is hardly any difference between A, B, C and D variations. This program makes higher variations play with more velocity (louder).

MyFavouriteBass
This program will search for bass tracks and then replace the bass patch to the one that you want to use instead. It will also replace the NoteLow and NoteHigh to get the best pitch range for this bass. You must customize the new bank/patch for the bass and the note range that it should stay within.

MyFavouritePiano
Situation: In OMB you have an XG synthesizer connected to channel 9 thru 16. Channel 8 is connected to a device that has a high quality piano. This program will search for tracks that contain a piano patch and then change the destination channel to 8 and specify the bank controllers and patch for this piano. You will have to customize the bank/patch for your piano.

RandomVelocity
Similar to AddMeasures. This time the velocity is changed to add variety.

SelectGuitarTracks
Using the stylemaker in OMB, you may want to import a track with a specific instrument. This sample will select tracks that are played with an accoustic guitar patch. The selected tracks are placed in a folder. Either customize the specified foldername in the program or create the specified folder on your computer. Customize the instruction "If DataByte1 = 24 " if you want to select tracks for other instruments.

SelectSlowStyles
Find styles with a tempo less than 70 and put them in the folder 'c:\SelectedStyles\.

SelectWaltzes
Find styles with 3 or 6 beats in a measure and put them in the folder 'c:\SelectedStyles\. List the selected stylenames with beats and tempo.

XgDrumSetToGm
This program will replace the XG-drum notes that are outside the GM-definition range. The GM replacements sound similar to the XG originals. In OMB this same conversion is automated if you have selected device type is GM. Yamaha keyboard owners can use the converted styles to make MIDI files that sound better when played on GM synthesizers.

Back to the One Man Band main page.