Click here to Skip to main content
15,889,034 members

Comments by shankha2010 (Top 24 by date)

shankha2010 23-Nov-15 4:54am View    
Hi Thanks for your reply.
I need to do something from C++ side [idl,struct STData1 etc.] so that "[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]" get appended in the C# side autometically without myself putting it manually.

something like:
*.idl
[uuid(AA612D65-AE0E-4C51-9A35-79A76FF20747)]
struct STData2
{
long long tTimeStamp;
something here=""
struct STData1 tData[16];
};
shankha2010 28-Apr-15 5:56am View    
Absolutely awesome and spellbounding.
I was trying to figure out these all explaination from loong days..

I really have very less knowledge about the wave equation of this tanpura.

I assumes it as below: [added what I learnt from your explaination]
A*Sin(w1*T1)+A*Sin(w2*T2)+A*Sin(w2*T3)+A*Sin(w3*T4)
Where
w1 is frequency of PA [A * (S )^5]
w2 is frequency of A [SA]
w3 is frequency of A(II) [SA`]
T1,T2,T3,T4 are consicutive time interval

Please see the sample sound:
http://www.soundsnap.com/tags/tanpura
labled as "TANPUR 1 1 C"
[the waveform is consist of 3 distinct single freq. wave what I was telling [pa-SA-SA-sa] ]
I am trying to help some musical guy who have profound knowledge on music [he is a non technical guy but understands these better than me.]
let me go back to the guy and to resolve the mess.

for now What I can tell is,
Assume a 2D matrix:
I have total 48 sound files C,C♯,D,E♭,E,F,F♯,G,G♯,A,B♭,B [total 12]
for each 12 type above i have [PA,MA,NI,SA]
so 12*4=48 wav files recorded in a studio environment with perfection.

no what have to do is:

INPUT: C-PA.wav and C#-PA.wav
OUTPUT: creating C1-Pa.wav,C2-Pa.wav

So what I thought was,from the above equation I'll take T1 time interval [say from 0th milisec to 2000milisec] from both the input and do fft and get 2 in between freq and do ifft back.
As for each of those interval it behaves as mono tone [single freq] so I thought I can get that. :(


I dont wan't to "Accept Solution" I want more from you Sir :)
Below is one of the simple app I created for testing,
https://play.google.com/store/apps/details?id=com.eswar.EswarMeditation

which is having:
e_panchama_single_t.wav [means E-PA]
shankha2010 26-Apr-15 4:33am View    
Yes you are right.Sorry for messing up the question.

Example: Say I am taking input C and C#

yes you are right C and C# are semitone
As per my calculation
C frequency=262
#C frequency =277

I want to generate 3 more intermediate sound of interval (277-262)/3
262 [C]
262+ 5= 267[C1]
267+ 5= 272[C2]
272+ 5= 277[C#]

Why want to take those sound to interpolate this?
Because those are real sound recorded by someone.A sound generated completely by equation will not have that quality.[may some extra low power frequency caused by human error or intension making it different from real sound.]

Is it understandable now? actually I am from India [south] here the sounds are calculated this way.[or may be every where same.]
Regards,
Shankha
shankha2010 15-Jan-15 2:27am View    
ok thanks :)
shankha2010 23-Dec-14 0:49am View    
Hi Darren,
Thanks for the reply.My only objective is no one should steal those files and reading should be very smooth [to avoid glitch while playing the sound.]

As per your plan I shall try in following way.
1>spliting the sound files in say 10 pieces
2>encrypt and keep it as blob in sqlite.
*That way i can avoid out of memory exception

*Only Not sure if the reading from db and decrypt will be smooth enough to avoid glitches.

I'll try this.please let me know if you have any other plan.
thanks again :)