ActionScript 3.0 :: Flash ComputeSpectrum: How Often Does The Data Change

Jun 25, 2010

I am executing a computeSpectrum function every 1/10 of a second (the speed I should be sampling the sound frequency to obtain a data bit). However the computeSpectrum seems to be giving me the same output every two or three times I call it.

Take a look at the source code and check the Binary read. Notice the binary read is repeating numbers, and the lack of single '0' or '1' bits? There should be some single '0's and '1's in there! I even made arrays of all of the input to check if the uncompressed ByteArray data was repeating and sure enough, the samples were quite often IDENTICAL every 2 or 3 calls...

PS: The audio sample data [More audio samples available there] I'm using is Peceptive Development's 'How to talk to Tin Can' [More info on reading audio as data there]. The audio sample provided in the archive is 'Low speed', which means the data is being sent at 100 baud (100 baud / 1000 ms = 10 bits per second)

View 2 Replies


Similar Posts:


Flash :: Translate FFT Data To Match ComputeSpectrum FFT Output

May 30, 2011

I'm used to using SoundMixer.computeSpectrum, but I need to get some data on-the-fly from the microphone (and I can't use the SoundMixer with the microphone).

I'm having trouble translating the FFT data (from this class) as shown in this excellent spectral analysis example to match the ByteArray output from computeSpectrum. My existing code is built to handle the data received from computeSpectrum (with FFT set to true).

View 1 Replies

Actionscript 3 :: Using ComputeSpectrum() Call On Arbitrary Data?

Mar 28, 2011

i have some arbitrary signal data which i'd like to get a frequency analysis of. it's not audio data. is there a way to coerce AS3's computeSpectrum() call into doing this work for me ?

View 1 Replies

Actionscript 3 :: Mute The Sound And Still Get Sound Data From SoundMixer.computeSpectrum?

Jun 25, 2011

I wrote something to capture sound from my microphone. I can visualise the sound data with SoundMixer.computeSpectrum.is there a way to mute the sound and still get sound data from SoundMixer.computeSpectrum?Now I have this:

sc=son.play();
var t:SoundTransform = new SoundTransform(0, 0);
sc.soundTransform = t;

but I do not get any data. if I pump up the volume, data comes through again(I need to mute it because it will echo otherwise).

View 1 Replies

Flash :: Flex: ComputeSpectrum With Streaming Media?

Jan 18, 2010

I have a Flex3 app I wrote and I'm streaming audio over RTMP from a Red5 server. I'd love to be able to use SoundMixer.computeSpectrum(), but the spectrum data is all zeros. In one location, Adobe writes that SoundMixer.computeSpectrum() does not work with RTMP data:

"For media loaded from RTMP sources, you cannot use the BitmapData.draw() and SoundMixer.computeSpectrum() methods to extract run-time graphics and sound data." [URL] Clear enough. Except, there's the actual documentation for computeSpectrum(): "In addition, this method cannot be used to extract data from RTMP streams, even when it is called by content that reside in the same domain as the RTMP server. [...] This method is supported over RTMP in Flash Player 9.0.115.0 and later and in Adobe AIR."

View 4 Replies

Flash :: Pitch Detection With ComputeSpectrum() Return FFT Values?

Jun 8, 2011

I'm developing using Actionscript 3.0 for Flash Player 10.3.I'm using computeSpectrum() on a loaded .mp3. Running *Event.ENTER_FRAME* to get snapshots of each sample in an byteArray.The ByteArray contains 512 values (256 for each channel). These values are FFT Spectrum, ranging from 0 to 1.I can't use the peak frequency for each of the samples (as I found found out!) because the highest value is not necessarily the fundamental frequency. As a result I'm getting lots of random values all over the place.Of course I'm getting some correct too, but that's not enough.

View 4 Replies

ActionScript 2.0 :: Add Data And Change Data Automatically Using Values Computed By Other Functions

Oct 30, 2004

I need to create a table and i need to be able to add data and change the data automatically using values computed by other functions. I was trying to use arrays to create the rows of the table but i dont know how to individually name each array. The arrays have to created automatically and so i cannot name each array manually.[code]but the value for the array is undefined.

View 1 Replies

Flex :: Data Grid Crashes With Data Provider Change?

Oct 5, 2010

I have a radio button group within a data grid, whenever I attempt to change the selected radio button the web page crashes. Below is how I put together the radio button in the data grid.

MXML

<mx:Accordion>
<fx:Declarations>
<s:RadioButtonGroup id="cover"/>

[Code]....

View 2 Replies

Flex :: Data Binding Re-bind When Data Model Not Change, Possible?

Nov 4, 2011

If user change the value of the TextInput, then click refresh button to retrieve the data model from backend again, the GUI value will not change back. Re-binding not happen, Since the value of data model not changed, no propertyChanged event fired.In this case, I must Programmatically set the model value to the GUI after data refreshing done.I know bi-directional binding can solve this problem(when user change value on GUI, set the new value to data model immediately). But sometimes I cannot use bi-directional binding, for example, the data model is a int, but user input a non-int value, I cannot set the value to data model. So the value in data model do not change, when refresh data, rebinding still not happen.

This will make the data binding useless. How to resolve this?I put pseudo-code here for now, I will put real code later:1. retrieve a data model from server, via blazeds or something else.2. bind the model to a TextInput on GUI.3. user change the TextInput text.4. User click a refresh button, triger retrieve the model value again.5. Now since the model value do not change, no PropertyChanged event fired.6. GUI value still is the user's input, not the value from the model. can clear the model value before set the velue back, make re-binding happen.(but sometimes you do not know how to clean the model value, take int for example, you may do not know the original value and happen set the same value). Or I can manually set the model value to GUI. But both are not good looking.

View 3 Replies

Data Integration :: Any Way To Change Image Sizes (From XML) In Flash?

Sep 7, 2006

I am creating a slideshow within Flash that uses XML data pulled from a database. Is there any way to manipulate the image size from within Flash? I am going to use the slideshow for a plasma display, and have clients uploading image files at random, which are then added to our database. I need each image to be 16:9. I know the easy way to control this would be to give the clients size requirements - we will do this in the future - but unfortunately there are hundreds of images already in the database that are already odd sizes. While it's clearly possible to change the size of the movie itself, is there a way to force each image that is imported from the XML to be a particular size - say 800 x 450 or 1200x 675 or 1600 x 900? (i.e. -- can I force the XML generated image to fill up the whole screen/browser window, regardless of what size it is?) It does not matter if the image gets distorted or stretched.

View 1 Replies

ActionScript 3.0 :: SoundMixer.computeSpectrum Seems Off?

May 21, 2009

Using the example found in the class documentation, you'll notice the bass frequencies are crammed on the low end too much, and the higher frequencies will sometimes register even in the bytearray.position = 0 float.  Is this a problem with the design of the computeSpectrum class?  Because I can take the same file, put it in another spectrum analyzer and see the bass and treble spread more evenly.[URL]

View 4 Replies

ActionScript 3.0 :: ComputeSpectrum If Volume Is 0?

Jul 31, 2009

I'm building a media player with a sound visualizer using computeSpectrum(). When I adjust the volume, there is no longer any data for the visualizer. Does anyone know a way to adjust the volume of audio, but still access audio data using computeSpectrum() as if the sound were still audible?

View 3 Replies

ActionScript 3.0 :: ComputeSpectrum 100 Times Per Second?

Jul 4, 2010

Just wondering how often Flash (as3) will allow me to computeSpectrum? I am currently attempting to computeSpectrum 100 times per second, but I am finding that the data repeats every few times.

View 1 Replies

Flash Datagrid Change Cell Color Depending Upon Updated Data

Apr 27, 2011

I have a datagrid in my Flash app whose data keeps updating quite frequently.On every update, I need to change the cell color of only those cells whose data has changed.That too, if the updated value is less than the older value then the cell color should change to RED else, GREEN.I have tried using labelFunction, cellrenderer, etc. But to no avail.By no means, I am able to access the present data in the cells to compare it with the new data.

View 1 Replies

ActionScript 2.0 :: CS3 Computespectrum Failing Randomly

Apr 17, 2008

am trying to make a mp3 player by using actionscript3.In this , am trying a upload a mp3 file and play that particular file. Am also using the computespectrum() to display the graphics.Now the problem am facing is with the computespectrum . Randomly , the computespectrum is failing for the same file and is throwing error.The error is as follows [code]Am actually uploading the file into a folder named "mp3files". The "mp3files" folder and the swf are lying in the same domain.

View 1 Replies

ActionScript 3.0 :: Youtube Api And SoundMixer.computeSpectrum?

Mar 31, 2011

I connect to the sound of youtube website, how can I bond SoundMixer.computeSpectrum

[Code]...

View 6 Replies

ActionScript 3.0 :: Possible To Run ComputeSpectrum On Multiple Files

Dec 8, 2009

Since there's (obviously) only one instance of SoundMixer in any given file, is it not possible to run computeSpectrum discreetly on different soundfiles loaded into an application? Basically I want to visualise each sound differently. Anyone come across any workarounds?

View 4 Replies

ActionScript 3.0 :: Remaking SoundMixer.computeSpectrum()?

Jul 8, 2009

For the past couple of weeks I've been wracking my brains over SoundMixer.computeSpectrum(), arguably the coolest method in ActionScript 3. It's the one that spits out the last 256 (or so) audio samples that hit the speakers, with the option of viewing that data in the time domain (waveform) or the frequency domain (Fourier transform). It's great for visualizing music, but its major drawback is that it only operates on global, playing audio, which means you cannot visualize different channels or preprocess the visualization.

Sound.extract(), a new method in Flash Player 10, gives you a Sound object's entire waveform at any time you want; I've managed to line up the waveform in Sound.extract() perfectly with the waveform in SoundMixer.computeSpectrum(), so they are literally neck-in-neck. In this SWF I'm drawing two lines- a blue line, which uses data from SoundMixer.computeSpectrum(), and a red line, which uses data from

[Code]...

View 11 Replies

ActionScript 3.0 :: ComputeSpectrum On Sound Class?

Jul 31, 2009

I'm trying to do some beat detection on a sound, but I want other sounds playing at the same time, and I don't want those to be included in the beat detection. Is there anything like SoundMixer.computeSpectrum for individual Sound or SoundChannel instances ?

View 2 Replies

ActionScript 3.0 :: Youtube Api And SoundMixer.computeSpectrum Does Not Work

Mar 31, 2011

I managed to run my youtube api and SoundMixer.computeSpectrum.SoundMixer.computeSpectrum are online, positionBar, player.getDuration (), player.getCurrentTime () does not work.Everything is running on localhost.I do not know is the security issue,

View 4 Replies

ActionScript 3.0 :: SoundMixer.computeSpectrum With Loaded FLV Movies?

Aug 31, 2009

I'm trying to use the code below to show a graphical representation of the sound from externally loaded FLVs, as they play.The code I have is below, can I change this to listen for whatever sounds Flash is playing at the moment and computeSpectrum from tha

Code:
var url:String = "song.mp3";
var request:URLRequest = new URLRequest(url);

[code]......

View 5 Replies

ActionScript 3.0 :: Analyze User's Playing Audio Using ComputeSpectrum?

May 27, 2009

I was wondering if it is possible to analyze music playing on a user's computer and show visualizations of it using computerSpectrum? Basically, can Flash read the audio playing on a computer or just the user's microphone?

View 6 Replies

Actionscript 3 :: What The Values Sent Back From ComputeSpectrum(bytes,true,0) Mean

Apr 7, 2010

I am just trying to understand what the values sent back from computeSpectrum(bytes,true,0) mean. I have values ranging from 0 to 1 for each float i read from the byte array but does each value represent a range of Hz

View 2 Replies

ActionScript 3.0 :: SecurityError: Error #2121: Security Sandbox Violation: SoundMixer.computeSpectrum:

Dec 19, 2008

I'm running two flash items on one page, both have sound, and the AS3 swf uses computeSpectrum

I'm getting the following error message:

SecurityError: Error #2121: Security sandbox violation:
SoundMixer.computeSpectrum:
http://dev1.kbrcomm.com/OLA/soundSpectrum_rev2.swf
cannot access
http://dev1.kbrcomm.com/OLA/ICE_intro_rev9.swf.

[Code]...

View 5 Replies

ActionScript 3.0 :: Error #2121: Security Sandbox Violation: SoundMixer.computeSpectrum: Widget5.swf Cannot Access

Jun 11, 2010

I am trying to develop a sound visualizer and i have developed OO solution but the problem is I get this error:

SecurityError: Error #2121: Security sandbox violation: SoundMixer.computeSpectrum: widget5.swf cannot access . This may be worked around by calling Security.allowDomain.
at flash.media::SoundMixer$/computeSpectrum()
at widget5/onEnterFrame()

Also if I press continue I get other error

Error: Error #2030: End of file was encountered.
at flash.utils::ByteArray/readFloat()
at widget5/onEnterFrame()

View 3 Replies

Flex - To Change Xml Data To ArrayCollection?

Jun 3, 2010

I have xml file with data as below and i want to convert this into Flex ArrayCollection including the id and name of the tags. I am using httpService to get the file.

[Code]...

View 1 Replies

Flex - ItemRender Data Change?

May 9, 2011

I have a List with an ItemRenderer. When I click a button, then a property of the ArrayCollection I bound to the list is changed.

When I click the button, then it does change the property, but the list doesn't change.

[Code]...

View 4 Replies

ActionScript 3.0 :: Change Name Of Each Data Value Without Writing Them Out One By One

Aug 26, 2009

I am trying to write one function to save all data but i am not sure how to change the name of each data value without writing them out one by one.[code]

View 3 Replies

ActionScript 2.0 :: MyText.textColor Change As Per The XML Data?

Apr 5, 2009

I am getting the data feed from XML in my flash, the values for the dynamic text box are assigned as passing the parameters, but cant figure out how to change the text color which is being passed for each record..

Code:
var listEvents:Object=new Object();
listEvents.onSlideshowChange = function(obj:Object, arg, index) {
_root.ldr.contentPath = obj.large;

[Code].....

View 3 Replies

ActionScript 2.0 :: Change Array To Hold Xml Data?

Aug 9, 2010

I have an array that's pulling movieclips from my libraray using Linkage IDs. How do I change this so that it's pulling the images from an xml file instead in order to reduce file size?[code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved