Skip to content

Commit

Permalink
typo and name
Browse files Browse the repository at this point in the history
  • Loading branch information
clrnd committed Dec 5, 2017
1 parent 6613ec3 commit b7ddafe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Where:
```

For example, suppose you have a WAV file `wavetable3.wav` that has
8192 samples:
`64*128 = 8192` samples:

```
$ soxi wavetable3.wav
Expand All @@ -66,7 +66,7 @@ Then, you would generate a SysEx file for transfering this
wavetable into slot 82 with the name "Awful Sound" like this:

```
wave2blofeld wavetable3.wav out.mid -n 3 -s "Awful Sound"
wave2blofeld wavetable3.wav out.mid -s 3 -n "Awful Sound"
```

Then it's just a matter of playing the midi file into the Blofeld with something
Expand Down
8 changes: 3 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Options parseOptions(int argc, char* argv[]){
half("d", "double", "Use only half of the samples for each wave. Useful for banks created with 256 samples per wave.", cmd, false);

TCLAP::ValueArg<unsigned int>
slot("s", "slot", "Wavetable to write to.", true, 0, "slot");
slot("s", "slot", "Wavetable to write to. Between 80 and 118.", true, 0, "slot");
cmd.add(slot);

TCLAP::ValueArg<std::string>
Expand Down Expand Up @@ -115,8 +115,6 @@ int main(int argc, char* argv[]){
MidiFile mf;
mf.setTicksPerQuarterNote(100);

std::string name = "Example Whatev";

std::cout << "Generating..." << std::endl;
for (int wave = 0; wave < 64; ++wave){

Expand All @@ -127,7 +125,7 @@ int main(int argc, char* argv[]){
mm[2] = 0x13; // Blofeld ID
mm[3] = 0x00; // Device ID
mm[4] = 0x12; // Wavetable Dump
mm[5] = 0x50 + opts.slot - 1; // Wavetable Number
mm[5] = 0x50 + opts.slot - 80; // Wavetable Number
mm[6] = wave & 0x7f; // Wave Number
mm[7] = 0x00; // Format

Expand All @@ -138,7 +136,7 @@ int main(int argc, char* argv[]){
}

for (int i = 0; i < 14; ++i){
mm[392+i] = name[i] & 0x7f;
mm[392+i] = opts.name[i] & 0x7f;
}

mm[406] = 0x0; // Reserved
Expand Down

0 comments on commit b7ddafe

Please sign in to comment.