From b0546e5e7f7044019892543c6c82029db8d564a7 Mon Sep 17 00:00:00 2001 From: Robert Jonsson Date: Thu, 15 Sep 2011 12:14:55 +0000 Subject: moved attic to a branch of it's own --- .../synti/zynaddsubfx/Seq/MIDIEvents.C | 85 ---------------------- 1 file changed, 85 deletions(-) delete mode 100644 attic/muse_qt4_evolution/synti/zynaddsubfx/Seq/MIDIEvents.C (limited to 'attic/muse_qt4_evolution/synti/zynaddsubfx/Seq/MIDIEvents.C') diff --git a/attic/muse_qt4_evolution/synti/zynaddsubfx/Seq/MIDIEvents.C b/attic/muse_qt4_evolution/synti/zynaddsubfx/Seq/MIDIEvents.C deleted file mode 100644 index 729089c6..00000000 --- a/attic/muse_qt4_evolution/synti/zynaddsubfx/Seq/MIDIEvents.C +++ /dev/null @@ -1,85 +0,0 @@ -/* - ZynAddSubFX - a software synthesizer - - MIDIEvents.C - It stores the midi events from midi file or sequencer - Copyright (C) 2003-2005 Nasca Octavian Paul - Author: Nasca Octavian Paul - - This program is free software; you can redistribute it and/or modify - it under the terms of version 2 of the GNU General Public License - as published by the Free Software Foundation. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License (version 2) for more details. - - You should have received a copy of the GNU General Public License (version 2) - along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - -#include "MIDIEvents.h" -#include -#include - -MIDIEvents::MIDIEvents(){ -}; - -MIDIEvents::~MIDIEvents(){ -}; - - -/************** Track stuff ***************/ -void MIDIEvents::writeevent(list *l,event *ev){ - listpos *tmp=new listpos; - tmp->next=NULL; - tmp->ev=*ev; - if (l->current!=NULL) l->current->next=tmp; - else l->first=tmp; - l->current=tmp; -// printf("Wx%x ",(int) l->current); -// printf("-> %d \n",l->current->ev.deltatime); - l->size++; -}; - -void MIDIEvents::readevent(list *l,event *ev){ - if (l->current==NULL) { - ev->type=-1; - return; - }; - *ev=l->current->ev; - l->current=l->current->next; - - //test - if (l->current!=NULL) { -// ev->deltatime=10000; -// printf("Rx%d\n",l->current->ev.deltatime); -// printf("Rx%x ",(int) l->current); -// printf("-> %d (next=%x) \n",(int)l->current->ev.deltatime,(int)l->current->next); - }; - -}; - - -void MIDIEvents::rewindlist(list *l){ - l->current=l->first; -}; - -void MIDIEvents::deletelist(list *l){ - l->current=l->first; - if (l->current==NULL) return; - while (l->current->next!=NULL){ - listpos *tmp=l->current; - l->current=l->current->next; - delete(tmp); - }; - deletelistreference(l); -}; - -void MIDIEvents::deletelistreference(list *l){ - l->current=l->first=NULL; - l->size=0; - l->length=0.0; -}; -- cgit v1.2.3