SampleDataEvent.data.writeFloat() at at 5kHz, 8kHz,11kHz or 22kHz - actionscript-3

How many times should I execute SampleDataEvent.data.writeFloat
when data has been recorded at 5kHz, 8kHz,11kHz or 22kHz ?
The voice has been recorded at 5kHz, 8kHz,11kHz or 22kHz with flash.media.Microphone.
I refered that
SampleDataEvent.data.writeFloat() - Why call it twice?

I've found this page and they describe frequency shifting which may give you some idea about your problem dynamic audio in as3 part 3

Related

(Version5) The function 'ta.ema' should be called on each calculation for consistency. It is recommended to extract the call from this scope

thanks for taking the time to read my problem.
I have this warning in my console : The function 'ta.ema' should be called on each calculation for consistency. It is recommended to extract the call from this scope.
So you can see the image of the script I did, I tried different alternative and still have the same warning, also the label.new still doesn't appearenter image description here on my chart.
Thanks for your help !
try to use ta.ema before the beginning of the if loop and store its value in a variable, then use that variable everywhere
you calculate several times the same calculus
and that's not good programming
as said above : "put the ta.ema in a variable" on a level-1 instruction
then use the variable everywhere
so it's less time consuming.

EMV card & APDU command to get the track 2

I trying to get the PAN from my card. I read a lot of topic about that, but I still understand :'(
I understand I have to find the AID I tried :
00A404000E315041592E5359532E4444463031
Thats works, but I don't really get some interesting informations ... If I correctly understand I have to find the 94 Application File Locator (AFL) (16 Byte) to be able to read the data...
Do i have to try another AID until I find the AFL ?
Thanks
Track2(tag 57) is usually returned in in response to READ RECORDs. To issue READ RECORDs you need to get the AFL first. AFL is returned in response to GET PO.
In VISA contactless you will get track in GET PO itself and you will get AFL only if ODA is required.

Saving high score and other things - corona

I want to save a high score in my game. I saw that you need to use json library but I dont know how to use it. i want to save a table and not just a written text. Ther is an easy way of doing that?
adit:
I have found Ego:
http://techority.com/2011/12/28/ego-easy-saving-and-loading-in-your-corona-apps/
it works very good! but I am concern. i am not Savvy at thise things. someone can the me if it is Reliable?
You can solve your problem in a easier way..
Just declare a Variable for the Score like this..
local score=0
Then Increment the score variable by 1 whenever it hits the paddle. So Insert the coding in Collision Function as given below:
local function onCollision(event)
{
score=score+1
}
ball.collision=onCollision
ball:addEventListener("collision",ball)
Finally When you need to save your highscore (after gameover), You can use Preference instead of json which makes the larger coding.
local preference= require "preference"
local highscore=0
preference.save{highscore=score}
If you want to display the Highscore, then use the following:
highscore_value=preference.getValue("highscore")
display.newText(highscore_value,0,0,nil,30)
This might be useful for your problem !!
Refer here :Save highscore on corona sdk?

Latitude/Longitude Generation to be used as sample data

I am writing a demo web application that tracks multiple devices through my companies platform. I have the app working, but need a csv file that will simulate devices moving on a map as if they were a tracker attached to a car. The simulator works by reading 1 row of data every second (1 lat/lng point). Here is an example of the first few lines of a file that would work if the points weren't scattered across the US (the SclId is the device name).
SclId Latitude Longitude
HAT-0 44.968046 -94.420307
HAT-1 44.33328 -89.132008
HAT-2 33.755787 -116.359998
HAT-3 33.844843 -116.54911
HAT-4 44.92057 -93.44786
HAT-5 44.240309 -91.493619
HAT-0 44.968041 -94.419696
HAT-1 44.333304 -89.132027
HAT-2 33.755783 -116.360066
HAT-3 33.844847 -116.549069
HAT-4 44.920474 -93.447851
HAT-5 44.240304 -91.493768
If I had something that could create simulation data with mouse clicks it would save me a lot of time creating another program requiring me to drive around with a device and record the data to a CSV. Any help/recommendations would be greatly appreciated. If you don't understand the question please ask for clarification!
There is a website that I use to draw waypoint and download it as any format e.g., GPX, KML, JSON, CSV, etc.
https://www.alltrails.com/explore/map/map-e727fa5--12

MIDI Program Change event

Please take a look at Midi Event Commands, where it's explained that some events like Program Change take only one parameter.
My question is then what do you send along with this event's 2nd parameter's byte, is it 0x00? or you just entirely omit it from the event which doesn't really make sense?
Not all MIDI messages are 3 bytes long. Some are only two, and program change is one of them. For these messages, there is no second data byte.