Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Elliott Lee Newsgroups: scee.yaroze.programming.sound Subject: Re: Sound newbie seeks advice Date: Tue, 09 Feb 1999 18:25:01 -0800 Organization: . Lines: 53 Message-ID: <36C0EDFD.D95B7006@shell.jps.net> References: <36C097D9.9FE74F5@yahoo.com> Reply-To: tenchi@shell.jps.net NNTP-Posting-Host: dhcp-m-62-237.cisco.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; U) Ed Fear wrote: > > Heya all! > > I'm loading my .seq file into memory, and in order to play it I need to > have a .vb and .vh file into memory. The tutorial that I am using, > Sound For Dummies, loads a set of .vb and .vh files called std0.vb and > std0.vh - but the .vb file is 300kb, and this completley mucks up > everything because I need more space! Can you make a 1 second sound > file, split it up into .vb and .vh files and use these instead? > > I'm a newbie, so can you explain this in as plain english as you can? > > Cheers in advance, > > Ed :) > http://www.netyaroze-europe.com/~gookaloo Well, the 300kb is the amount of sound RAM that is required to hold the entire general MIDI set for the Yaroze. Not bad, but eats up the space. The alternative is to use your own instrument set. I use MODs, so I only load what instruments I need. As for the 1 second sound file, all you need to do is turn that waveform into an instrument and then "key on" the instrument. So... 1) save your waveform in something that's either AIFF or WAV format (16-bit, mono) 2) run WAV2VAG to convert that waveform into a .VAG file 3) snag someone's VAB header file and edit it so that you only have 1 instrument and 1 "program". 4) run MKVAB and create the .VAB file 5) run VABSPLIT to create your final .VH and .VB files 6) load the .VH and .VB into memory somewhere in your SIOCONS batch file 7) in your program, initialize the new VAB (.VH and .VB) and be sure you get that sound handle back! 8) you then just use SsUtKeyOn() to play back your sound. Pick a middle note like 48 or 60 and a volume of like 128 (both left and right channels). Does that help? - e! tenchi@shell.jps.net SCEA