Towards MIDI:
authorDavid Robillard <d@drobilla.net>
Sat, 12 Aug 2006 08:20:24 +0000 (08:20 +0000)
committerDavid Robillard <d@drobilla.net>
Sat, 12 Aug 2006 08:20:24 +0000 (08:20 +0000)
commit30ab1fd61569f9d7fb7410d483fa68cbf9865c37
tree60cf9b5228a2728cda6608d517528066253d1a17
parentcbdf686e391bc2e7b93f37a5d3fa9197cb178078
Towards MIDI:

- Converted vector<Sample*> to BufferList and numerous counts from int to ChanCount (and related changes)
- Added fancy type-generic iterators to BufferList, PortIterator (see IO::collect_input for a good example of the idea - the same code will work to read all input (of various types in a single IO, eg instruments) without modification no matter how many types we add)
- Fixed comparison operator bugs with ChanCount (screwed up metering among other things)
- Moved peak metering into it's own object, and moved most of the pan related code out of IO to panner (still a touch more to be done here for MIDI playback)

Not directly MIDI related fixes for problems in trunk:

- Fixed varispeed gain/pan automation to work properly (was reading the wrong range of automation data, probably causing nasty clicks?)
- Fixed crash on varispeed looping (possibly only a 64-bit problem).  It still doesn't work, but at least it doesn't die

Quite a few things broken, and the new classes are pretty filthy still, but I think the direction is a lot better than all my previous plans...

git-svn-id: svn://localhost/ardour2/branches/midi@795 d708f5d6-7413-0410-9779-e7cbd77b26cf
59 files changed:
gtk2_ardour/audio_region_view.cc
gtk2_ardour/audio_streamview.cc
gtk2_ardour/editor.h
gtk2_ardour/editor_export_audio.cc
gtk2_ardour/gain_meter.cc
gtk2_ardour/redirect_box.cc
libs/ardour/SConscript
libs/ardour/ardour/audio_port.h
libs/ardour/ardour/audio_track.h
libs/ardour/ardour/audio_unit.h
libs/ardour/ardour/audioengine.h
libs/ardour/ardour/buffer.h
libs/ardour/ardour/buffer_set.h
libs/ardour/ardour/chan_count.h
libs/ardour/ardour/curve.h
libs/ardour/ardour/data_type.h
libs/ardour/ardour/declicker.h [new file with mode: 0644]
libs/ardour/ardour/diskstream.h
libs/ardour/ardour/insert.h
libs/ardour/ardour/io.h
libs/ardour/ardour/ladspa_plugin.h
libs/ardour/ardour/meter.h [new file with mode: 0644]
libs/ardour/ardour/midi_port.h
libs/ardour/ardour/midi_track.h
libs/ardour/ardour/panner.h
libs/ardour/ardour/plugin.h
libs/ardour/ardour/port.h
libs/ardour/ardour/port_set.h
libs/ardour/ardour/redirect.h
libs/ardour/ardour/route.h
libs/ardour/ardour/send.h
libs/ardour/ardour/session.h
libs/ardour/ardour/track.h
libs/ardour/audio_diskstream.cc
libs/ardour/audio_port.cc
libs/ardour/audio_track.cc
libs/ardour/audioengine.cc
libs/ardour/auditioner.cc
libs/ardour/buffer.cc
libs/ardour/buffer_set.cc
libs/ardour/curve.cc
libs/ardour/declicker.cc [new file with mode: 0644]
libs/ardour/diskstream.cc
libs/ardour/insert.cc
libs/ardour/io.cc
libs/ardour/ladspa_plugin.cc
libs/ardour/meter.cc [new file with mode: 0644]
libs/ardour/midi_diskstream.cc
libs/ardour/midi_track.cc
libs/ardour/panner.cc
libs/ardour/port_set.cc
libs/ardour/route.cc
libs/ardour/send.cc
libs/ardour/session.cc
libs/ardour/session_click.cc
libs/ardour/session_process.cc
libs/ardour/session_state.cc
libs/ardour/track.cc
libs/surfaces/control_protocol/control_protocol.cc