File tree Expand file tree Collapse file tree
Source/Processors/RecordNode Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ class EventQueue
130130
131131 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EventQueue);
132132};
133-
133+ // NOTE: Events are sent as midimessages while spikes as spike objects due to the difference on how they are passed to the record node.
134+ // Once the probe system is implemented, this will be normalized
134135typedef EventQueue<MidiMessage> EventMsgQueue;
135136typedef EventQueue<SpikeEvent> SpikeMsgQueue;
136137typedef ReferenceCountedObjectPtr<AsyncEventMessage<MidiMessage>> EventMessagePtr;
Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ int RecordEngine::getNumRecordedChannels() const
103103 return channelMap.size ();
104104}
105105
106+ int RecordEngine::getNumRecordedEvents () const
107+ {
108+ return AccessClass::getProcessorGraph ()->getRecordNode ()->getTotalEventChannels ();
109+ }
110+
106111void RecordEngine::registerSpikeSource (const GenericProcessor* processor) {}
107112
108113int RecordEngine::getNumRecordedProcessors () const
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ class PLUGIN_API RecordEngine
156156 /* * Gets the specified channel from the channel array stored in RecordNode */
157157 const DataChannel* getDataChannel (int index) const ;
158158
159+ /* * Gets the specified event channel from the channel array stored in RecordNode */
159160 const EventChannel* getEventChannel (int index) const ;
160161
161162 /* * Gets the specified channel group info structure from the array stored in RecordNode */
@@ -173,6 +174,12 @@ class PLUGIN_API RecordEngine
173174 /* * Gets the number of recorded channels */
174175 int getNumRecordedChannels () const ;
175176
177+ /* * Gets the number of recorded event channels
178+ (right now all channels are recorded) */
179+ int getNumRecordedEvents () const ;
180+
181+ /* * TODO: to fill when the probe system is implemented*/
182+ // int getNumRecordedSpikes() const;
176183
177184 /* * Gets the number of processors being recorded
178185 */
You can’t perform that action at this time.
0 commit comments