23 May '13 - 08:47 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Basic Recording and Tempo Matching  (Read 491 times)
janiduw
Posts: 3


« on: 26 Apr '11 - 11:17 »
Reply with quoteQuote

Hey,

I'm an absolute beginner to Bass and I would appreciate if some one could answer the following.

1. Can I use Bass to record a line in instrument and is it a complex task to do it using the .Net library

2. Can I use bass to detect the tempo of the recording ?.

I'm sure these are very basic questions and I would require to finish off my task in 2 or 3 days.

Thanks,

Regards,
Janidu
Logged
Ian @ un4seen
Administrator
Posts: 15269


« Reply #1 on: 26 Apr '11 - 16:12 »
Reply with quoteQuote

1. Can I use Bass to record a line in instrument and is it a complex task to do it using the .Net library

To confirm, you want to record the sound from an instrument that is plugged into the soundcard's line-in? If so, yes, that is possible with BASS. If you want to record to a file, you can also use the BASSenc add-on for that. I'm not a .Net user myself, but in C/C++, the basic code could look something like this...

BASS_RecordInit(...); // initialize a recording device
hrecord=BASS_RecordStart(44100, 2, BASS_RECORD_PAUSE, RecordProc,0); // start recording from it (paused)
BASS_Encode_Start(hrecord, "output.wav", BASS_ENCODE_PCM|BASS_ENCODE_AUTOFREE, 0, 0); // set a WAVE writer on the recording
BASS_ChannelPlay(hrecord, 0); // unpause the recording

...

BASS_ChannelStop(hrecord); // stop the recording (and the WAVE writing due to AUTOFREE)

...

// recording callback function
BOOL CALLBACK RecordProc(HRECORD handle, const void *buffer, DWORD length, void *user)
{
return BASS_Encode_IsActive(handle); // continue recording if the WAVE writer is alive
}

Please see the documentation for details on the aforementioned functions.

2. Can I use bass to detect the tempo of the recording ?.

You could use the BASS_FX add-on to do that. Lookup the BASS_FX_BPM_CallbackSet function.
Logged
janiduw
Posts: 3


« Reply #2 on: 26 Apr '11 - 16:46 »
Reply with quoteQuote

Yes it is a line in to a sound card . Thank you very much Smiley
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines