Changeset 1268
- Timestamp:
- 09/25/07 13:51:21 (13 months ago)
- Location:
- trunk/src/buzelib
- Files:
-
- 7 modified
-
Document.cpp (modified) (2 diffs)
-
Document.h (modified) (1 diff)
-
MachineParameterView.cpp (modified) (1 diff)
-
MachineView.cpp (modified) (1 diff)
-
PatternEditor/PatternEditorControl.cpp (modified) (1 diff)
-
PatternEditor/PatternEditorControl.h (modified) (1 diff)
-
WaveTableView.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/buzelib/Document.cpp
r1267 r1268 878 878 m->mute(false); 879 879 880 if (state) m->stop(); 881 880 882 updateAllViews(0, UpdateSelectedMachine, m); 881 883 } … … 1345 1347 player->lock(); 1346 1348 streamplayer->machine->init(&archive); 1347 playMachineNote(streamplayer, note );1349 playMachineNote(streamplayer, note, 0); 1348 1350 /* streamplayer->setParameter(1, 0, 0, note, false); // note 1349 1351 streamplayer->setParameter(3, 0, 0, 0, false); // offset*/ 1350 streamplayer->tickAsync();1352 //streamplayer->tickAsync(); 1351 1353 player->unlock(); 1352 1354 } -
trunk/src/buzelib/Document.h
r1260 r1268 270 270 bool isNotePlaying(zzub::metaplugin* m, int note); 271 271 // note = buzz note or NOTE_OFF, prevNote = note for which NOTE_OFF is set or -1 272 void playMachineNote(zzub::metaplugin* m, int note, int prevNote = zzub::note_value_off);272 void playMachineNote(zzub::metaplugin* m, int note, int prevNote); 273 273 // play back the specified pattern 274 274 void playPattern(zzub::metaplugin* machine, zzub::pattern* pattern, int row=0); -
trunk/src/buzelib/MachineParameterView.cpp
r1267 r1268 142 142 if (document->isNotePlaying(plugin, note)) return 0; 143 143 144 document->playMachineNote(plugin, note );144 document->playMachineNote(plugin, note, 0); 145 145 return 0; 146 146 } -
trunk/src/buzelib/MachineView.cpp
r1264 r1268 193 193 if (m->getType() != plugin_type_generator) return 0; // only generators 194 194 195 document->playMachineNote(m, note );195 document->playMachineNote(m, note, 0); 196 196 return 0; 197 197 } -
trunk/src/buzelib/PatternEditor/PatternEditorControl.cpp
r1267 r1268 304 304 } 305 305 306 void CPatternEditorControl::ScrollPattern(int x, int y) {307 }308 309 306 void CPatternEditorControl::ClearSelection() { 310 307 SelectRange(-1, -1, -1, -1); -
trunk/src/buzelib/PatternEditor/PatternEditorControl.h
r1263 r1268 77 77 POINT GetCursor() { return editor.cursor; } 78 78 int GetColumns() { return editor.columns.size(); } 79 void ScrollPattern(int x, int y);80 79 void ClearSelection(); 81 80 void SetValue(int group, int track, int column, int row, int value); -
trunk/src/buzelib/WaveTableView.cpp
r1264 r1268 167 167 //points.push_back(ee.points[i].flags); 168 168 } 169 envelopeCtrl->SetEnvelope(env->points.size(), -1, &points.front());169 envelopeCtrl->SetEnvelope(env->points.size(), env->sustain, &points.front()); 170 170 171 171 // TODO: update disable-checkbox … … 412 412 413 413 LRESULT CWaveTableView::OnLbnDblClkWaveList(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { 414 int index =waveTableList.GetCurSel();415 if (index >=player->getWaves()) return 0;416 if (index <0) return 0;417 418 wave_info_ex* entry =player->getWave(index);419 if (entry ==0) return 0;414 int index = waveTableList.GetCurSel(); 415 if (index >= player->getWaves()) return 0; 416 if (index < 0) return 0; 417 418 wave_info_ex* entry = player->getWave(index); 419 if (entry == 0) return 0; 420 420 421 if (entry->get_levels() ==0) return 0;422 423 player->getWavePlayer()->play(entry, 0, NOTE_C4);421 if (entry->get_levels() == 0) return 0; 422 423 document->playStream(zzub::note_value_c4, "@zzub.org/stream/wavetable;1", stringFromInt(index+1)); 424 424 return 0; 425 425 } … … 578 578 entry->points.push_back(pt); 579 579 } 580 581 entry->sustain = sustainIndex; 580 582 581 583 }
