25 May '13 - 05:09 *
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: [C#] Create 2 Waveforms and display them  (Read 2030 times)
MO2k4
Posts: 5


« on: 31 Oct '09 - 12:29 »
Reply with quoteQuote

Hi,

i am very new to Bass and have a little question. I look at the samples and try to build my own application. I want to write an application which displays 2 audio files and which sync them after that.

My first problem is that, when i build up two waveforms, both displays exact the same and both have the same data.

Am i right that the data should be in WaveForm.Wave.data?

I have tried to build two instances of the Bass-Instance but then it will crash. I start the Bass-Instance and then have a helper class which builds the Waveforms and displays them in the picturebox, but the second loaded file, seems not to be right integrated.

How can i get two different Waveforms?

I will attach my project.

Hope someone can help me.


Best Regards,

MO

* TestApp.zip (352.15 KB - downloaded 74 times.)
Logged
radio42
Posts: 4012


« Reply #1 on: 31 Oct '09 - 16:11 »
Reply with quoteQuote

I'm affraid, that I'm not fully sure what the real issue is.
In your demo app you render 2 waveforms. The 'Original' and the 'Admission' one.
When I select two different files for 'Original' and 'Admission' 2 different waveforms are displayed.
If I select the same file for both they are displayed equally for both (of course).
And yes, then level data is stored in WaveForm.Wave.data.

What do you mean by: "How can i get two different Waveforms?"
-> by loading two different files.
Logged
MO2k4
Posts: 5


« Reply #2 on: 31 Oct '09 - 16:19 »
Reply with quoteQuote

Hm thats sounds a little bit weird. Of course i load 2 different files, but then both pictures looks equal and they have the same data.

Can you post a picture?

if i load 2 different files it looks like that -->



Edit: Oh sorry i got it, what a stupid mistake. Copy&Paste Failure  Undecided
« Last Edit: 31 Oct '09 - 16:29 by MO2k4 » Logged
ken
Posts: 630


« Reply #3 on: 2 Nov '09 - 09:00 »
Reply with quoteQuote

How can i get two different Waveforms?



in you function "admissonToolStripMenuItem_Click" you have a small typo...

you have:
_admissonFileName = this.openFileDialog1.FileName;
_admissonHelper = new BassHelper(_originalFileName, this, this.pictureBox2);

change to: (otherwise you load the first audio again!!
_admissonFileName = this.openFileDialog1.FileName;
_admissonHelper = new BassHelper(_admissonFileName, this, this.pictureBox2);

Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines