Revision: 360
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=360&view=rev
Author: pstieber
Date: 2008-03-30 04:25:53 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Made cosmetic changes.
Modified Paths:
--------------
trunk/jazz/src/Events.cpp
Modified: trunk/jazz/src/Events.cpp
===================================================================
--- trunk/jazz/src/Events.cpp 2008-03-30 11:19:36 UTC (rev 359)
+++ trunk/jazz/src/Events.cpp 2008-03-30 11:25:53 UTC (rev 360)
@@ -39,7 +39,8 @@
//*****************************************************************************
//*****************************************************************************
-
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
int tReadBase::Open(const char* pFileName)
{
if (pFileName == NULL)
@@ -60,6 +61,8 @@
return 1;
}
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
void tReadBase::Close()
{
if (fd != stdin)
@@ -70,7 +73,8 @@
//*****************************************************************************
//*****************************************************************************
-
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
int tWriteBase::Open(const char* pFileName, int nTracks, int TicksPerQuarter)
{
if (pFileName == NULL)
@@ -106,7 +110,8 @@
return nTracks;
}
-
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
void tWriteBase::Close()
{
if (fd != stdout)
@@ -118,7 +123,8 @@
//*****************************************************************************
// tGetMidiBytes
//*****************************************************************************
-
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
int tGetMidiBytes::Write(JZEvent* pEvent, unsigned char* pString, int Length)
{
int Stat = pEvent->Stat;
@@ -149,21 +155,23 @@
//*****************************************************************************
//*****************************************************************************
-
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
int tSysEx::GetPitch()
{
edb();
- int id = gpSynth->GetSysexId( this );
- if ((id >= SX_GM_ON) && (id < SX_GS_ON))
+ int Id = gpSynth->GetSysexId(this);
+
+ if (Id >= SX_GM_ON && Id < SX_GS_ON)
{
return SX_GROUP_GM;
}
- else if ((id >= SX_GS_ON) && (id < SX_XG_ON))
+ else if (Id >= SX_GS_ON && Id < SX_XG_ON)
{
return SX_GROUP_GS;
}
- else if ((id >= SX_XG_ON) && (id < NumSysexIds))
+ else if (Id >= SX_XG_ON && Id < NumSysexIds)
{
return SX_GROUP_XG;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|