comparison data/model/DenseThreeDimensionalModel.h @ 568:fa32590f5a61

* Make it possible to record live MIDI to a note layer. Now we're a proper MIDI sequencer. Ha, ha.
author Chris Cannam
date Wed, 25 Feb 2009 12:02:53 +0000
parents 55ad231c9db7
children 68f3eaefe297
comparison
equal deleted inserted replaced
567:e6d35670e1df 568:fa32590f5a61
128 case 1: return tr("Frame"); 128 case 1: return tr("Frame");
129 default: return getBinName(column - 2); 129 default: return getBinName(column - 2);
130 } 130 }
131 } 131 }
132 132
133 virtual QVariant getData(int row, int column, int role) const 133 virtual QVariant getData(int row, int column, int) const
134 { 134 {
135 switch (column) { 135 switch (column) {
136 case 0: { 136 case 0: {
137 RealTime rt = RealTime::frame2RealTime(row * getResolution(), 137 RealTime rt = RealTime::frame2RealTime(row * getResolution(),
138 getSampleRate()); 138 getSampleRate());
146 } 146 }
147 147
148 virtual bool isColumnTimeValue(int col) const { 148 virtual bool isColumnTimeValue(int col) const {
149 return col < 2; 149 return col < 2;
150 } 150 }
151 virtual SortType getSortType(int col) const { 151 virtual SortType getSortType(int) const {
152 return SortNumeric; 152 return SortNumeric;
153 } 153 }
154 154
155 virtual long getFrameForRow(int row) const { 155 virtual long getFrameForRow(int row) const {
156 return row * getSampleRate(); 156 return row * getSampleRate();