[Stk] Re: STK Question

Perry R Cook prc@CS.Princeton.EDU
Fri, 6 Apr 2007 21:45:25 -0400 (EDT)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--1887479195-1212978347-1175910299=:17741
Content-Type: TEXT/PLAIN; CHARSET=X-UNKNOWN; FORMAT=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-ID: <Pine.LNX.4.64.0704062145181.17741@opus.CS.Princeton.EDU>


Raphael,

Please join and address your questions to the stk mailing
list at ccrma.stanford.edu.  You'll get much more varied
(and likely expert) answers from there.

PRC

On Fri, 6 Apr 2007, Rapha=EBl Tremblay Lessard wrote:

> Hello Sir,
>
> I'm a student at the Universit=E9 du Qu=E9bec =C0 Chicoutimi (UQAC) and I=
'm
> currently working on a project about sequencing midi files, and I'm using
> your library and it's MidiFileIn component to do it.
>
> To explain my problem and my question, let me summarize my project in a f=
ew
> sentences. I wish to make a game that would open a midi file, ask the pla=
yer
> which track he wants to play on his keyboard, and put it in a "DDR"-like
> form. I do hope you know Dance Dance Revolution so that you understand wh=
at
> I'm trying to make, if not, here's a screenshot from the PC version of it=
 :
> ScreenShot <http://wogly.ifrance.com/Stepmania_ButterFly.png>. It's
> basically a game of hitting the scrolling notes at the right time. I'm
> trying to do the same but instead of having only 4 arrows, I intend on
> making a full 88-keys visual keyboard with notes scrolling and the player
> has to play the right note on his keyboard so that he plays the song
> appropriately, with the other tracks accompanying him while playing in th=
e
> background.
>
> Now, as I understand it, to do this, I must open Format 1 midi files with
> your library, because I need the individual instrument tracks so I can
> isolate the instrument that I want to be played by the player, and have t=
he
> others play by themselves. But whenever I use the getNextMidiEvent() meth=
od
> using an std::vector<unsigned char>, I get the following error when it ge=
ts
> to line 300 of MidiFileIn.cpp : "Debug assertion failed : Expression :
> Vector subscript out of range" and the usual stuff that VS gives when
> there's an error.
>
> My question is this : Am I using the MidiFileIn class incorrectly? If not=
,
> what's wrong? And is there another way to do it that works?
>
> I'm using Visual Studio 2005 on a Windows XP SP2 Machine.
>
> Thank you at least for your time reading this,
> Rapha=EBl Tremblay Lessard
> Student in Computer Sciences at the UQAC
>
> P.S. If you need more explanations of what my project is so that you can
> visualize the problem, I'd be happy to explain in detail.
>
--1887479195-1212978347-1175910299=:17741--