Click here to Skip to main content
15,895,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to return/store references on objects Pin
Not Active26-Jan-04 10:18
mentorNot Active26-Jan-04 10:18 
GeneralRe: How to return/store references on objects Pin
Jörgen Sigvardsson26-Jan-04 10:20
Jörgen Sigvardsson26-Jan-04 10:20 
GeneralRe: How to return/store references on objects Pin
Heath Stewart26-Jan-04 10:41
protectorHeath Stewart26-Jan-04 10:41 
GeneralRe: How to return/store references on objects Pin
Jörgen Sigvardsson26-Jan-04 12:41
Jörgen Sigvardsson26-Jan-04 12:41 
AnswerRe: How to return/store references on objects Pin
Heath Stewart26-Jan-04 8:53
protectorHeath Stewart26-Jan-04 8:53 
GeneralCEMAPI use in C# :confused: Pin
camasmartin26-Jan-04 7:08
camasmartin26-Jan-04 7:08 
GeneralRe: CEMAPI use in C# :confused: Pin
Heath Stewart26-Jan-04 8:47
protectorHeath Stewart26-Jan-04 8:47 
GeneralReferring to a 2D array through a 1D array Pin
crushinghellhammer26-Jan-04 6:50
crushinghellhammer26-Jan-04 6:50 
This is what I would like to do:

1. Read in a WAV file
2. Break it up into segments of 256 samples each, with an overlap of 64 samples.
3. Refer to each segment as Segment[i] where "i" is the number of samples.

I'm done with steps 1 and 2. This is the code block that I used to segment the samples:

// *** CODE FOLLOWS ***

// For the WAV file I'm working with, there are 17 such segments

for(int i = 0; i < 17; i++)
{
for(int j = 0; j < 256; j++) {
WaveSegment[i,j] = objWaveToSegment.Data[(i*64) + j];
}
}

/// *** END OF CODE ***

In the above snippet, objWaveToSegment is an object of another class that reads in the WAV file and provides access to it's data.

Now, how do I create 17 1*256 arrays called "Segment" such that when I refer to Segment[1] I get samples 0..255, Segment[2] is 64..319 etc.

Thank you for your replies in advance Smile | :)
GeneralRe: Referring to a 2D array through a 1D array Pin
Anonymous26-Jan-04 8:21
Anonymous26-Jan-04 8:21 
GeneralRe: Referring to a 2D array through a 1D array Pin
crushinghellhammer26-Jan-04 14:25
crushinghellhammer26-Jan-04 14:25 
GeneralRe: Referring to a 2D array through a 1D array Pin
Heath Stewart26-Jan-04 9:06
protectorHeath Stewart26-Jan-04 9:06 
GeneralRe: Referring to a 2D array through a 1D array Pin
crushinghellhammer26-Jan-04 14:37
crushinghellhammer26-Jan-04 14:37 
GeneralRe: Referring to a 2D array through a 1D array Pin
Heath Stewart27-Jan-04 2:46
protectorHeath Stewart27-Jan-04 2:46 
GeneralRe: Referring to a 2D array through a 1D array Pin
crushinghellhammer27-Jan-04 8:21
crushinghellhammer27-Jan-04 8:21 
GeneralRe: Referring to a 2D array through a 1D array Pin
crushinghellhammer27-Jan-04 8:23
crushinghellhammer27-Jan-04 8:23 
GeneralRe: Referring to a 2D array through a 1D array Pin
Heath Stewart27-Jan-04 8:58
protectorHeath Stewart27-Jan-04 8:58 
GeneralRe: Referring to a 2D array through a 1D array Pin
crushinghellhammer27-Jan-04 9:01
crushinghellhammer27-Jan-04 9:01 
GeneralRe: Referring to a 2D array through a 1D array Pin
Heath Stewart27-Jan-04 9:08
protectorHeath Stewart27-Jan-04 9:08 
GeneralRe: Referring to a 2D array through a 1D array Pin
crushinghellhammer27-Jan-04 8:50
crushinghellhammer27-Jan-04 8:50 
GeneralPreview in Open Dialog box Pin
Shree26-Jan-04 6:23
Shree26-Jan-04 6:23 
GeneralRe: Preview in Open Dialog box Pin
Heath Stewart26-Jan-04 8:43
protectorHeath Stewart26-Jan-04 8:43 
GeneralUploading Images Pin
srt726-Jan-04 4:36
srt726-Jan-04 4:36 
GeneralRe: Uploading Images Pin
Mazdak26-Jan-04 4:52
Mazdak26-Jan-04 4:52 
GeneralRe: Uploading Images Pin
Mazdak26-Jan-04 4:57
Mazdak26-Jan-04 4:57 
GeneralRe: Uploading Images Pin
srt726-Jan-04 6:36
srt726-Jan-04 6:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.