Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Justin Newsgroups: scea.yaroze.programming.sound Subject: Re: Vab's and seq files? Date: Fri, 29 Aug 1997 03:23:20 +0000 Organization: Digital City Inc. Lines: 33 Message-ID: <340640A8.267A@digitalcity.com> References: <34030193.79D4@digitalcity.com> <01bca625$f9518000$c793989e@fourny.demon.co.uk> Reply-To: justin@digitalcity.com NNTP-Posting-Host: ascend-15.ppp.aol.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (Macintosh; I; PPC) Grim wrote: > > Load in the VB and VH like a TIM file, then do something like this; > > #define VHADDR 0x801a0000 > #define VBADDR 0x80160000 > > SsVabTransfer((unsigned char *)VHADDR, (unsigned char *)VBADDR, 0, 1); > > To set it up as the 0th VAB. > > Then you need SsUtKeyOn > > like SsUtKeyOn(0, 4, 0, 52,64, 127, 127) plays tone 0 of the 4th prog of > the 0th > VAB at pitch 52 (1 octave lower than middle C becuase I sampled my wavs at > 22khz not 44). The only way I could get my sfx to work was to put them all > in different progs, 1 tone per prog. I never managed to get them all in 1 > prog at different pitch ranges. There must be a knack. > > I never bothered with SsUtKeyOff. But maybe you need that too? Help! Cool I got my sounds working because of Grim and Mario's response. I loaded all 15 of my sound fx into one .vb and .vh file. Each sound Effect is a different program and they play great. I sampled at 22 khz and to get the sound to play correctly I used SsUtKeyOn(0, program, 0, 77, 64, 127, 127); where 77 plays the sound in the correct pitch. God I love programming PlayStation. Mario, sorry about the complaints a couple of months ago. The newsgroups solve all my problems. -justin