ActionScript 3.0 :: Retrieving Sound Frequency And Mono/stereo Channels?

Sep 28, 2011

Can I figure out somehow sound's frequency (primarily .mp3s) and if it is mono or stereo?

View 4 Replies

Similar Posts:

ActionScript 3.0 :: Flash SoundTransform: Stereo Play Sound From Left To Right Not Working

Sep 6, 2011

i'm trying to play a sound from left to right using actionscript3. i have putted in the first keyframe the code. what i have wrote is:

var soundClip:Sound;
var channel:SoundChannel = new SoundChannel();
var trans:SoundTransform = new SoundTransform();


View 1 Replies

ActionScript 3.0 :: Sound Visulizer On The Basis Sound Frequency?

Jul 9, 2009

I'm developing a flash application that capture an input sound using the microphone object. Unfortunately in this way there's no possibility to get the sound frequency or the bands of the source. How to make Sound Visulizer on the basis sound frequency

View 3 Replies

Audio :: Extract Sound Object To A Mono Byte Array In AS3?

Jan 18, 2012

I'm trying to prepend the byte array of a sound object to a captured microphone sound byte array.

It works, but the extracted sound object get pichted down and doubled in length. I guess this is because the byte array of the sound object is in stereo, while the mic byte array is in mono.

I have this:

sound.extract(myByteArray, extract);

myByteArray now contains the stereo data. How can I turn this to mono


Here's a working solution:

existingByte.position = 0;
var mono : ByteArray = new ByteArray();
while(existingByte.bytesAvailable) {


View 1 Replies

ActionScript 2.0 :: Create Sound File Of A Particular Frequency?

Aug 18, 2011

I need to create an audio file (sine wave) of a particular frequency. I need to do this in actionscript 2.0.

View 0 Replies

ActionScript 3.0 :: Render Frequency Spectrum While Loading Sound?

Jan 13, 2009

I am action script developer in a company. I want to render my freequency spectrum while loading sound.I tried it different way.please suggest any way to do it

View 0 Replies

ActionScript 3.0 :: Disable Sound In All Channels?

Aug 26, 2011

I am using an application which load games as an external swf file(total 10 games). When I click on the game icon it loads the game and also the sounds related to that game.

But when I close the game in that app, ideally it should also stop the sound for that game. It happens for few games, but for some games the sound still plays in the background even if the game is closed.I have used


In some games the sound is embedded in the game swf file and in some games sound is called from the external mp3 files.Is there a way in which if i close the game. ie any game , the sound should stop.

View 3 Replies

ActionScript 3.0 :: FLV Preloading And Caching And Sound Channels?

Sep 26, 2011

We are working at a complex AS3.0/Flash game project, where we need to preload and cache around 70 movie files with sound. But somehow the preloaded videos all seem to block a sound channel and so some sounds are not played in the game, as we seem to exceed the 32 sound channels. I cannot provide any technical details at the moment, but I will add them as soon as the developer in charge is back in the office.

View 1 Replies

Flash :: Actionscript - Synchronizing 2 Sound Channels?

Sep 9, 2011

I am using 2 sound channels to play 2 separate, externally loaded mp3 files at the same time. Right now I have the play button tied to a function that starts the first mp3, then the 2nd. The problem is - the 2nd mp3 starts a few milliseconds after the first. Is there a way that I can make sure these 2 start playing at the exact same time?


View 1 Replies

ActionScript 3.0 :: Multiple Sound Channels At Different Vols?

Jul 14, 2009

is it possible to have multiple SoundChannels? And have a volume control control multiple volumes?

i have a site that uses .flv's with sound all throughout. Volume control is attached to a sound transform that affects the stream. I also added a piece of code to this function that creates a new soundtransformation object, adds it to a soundfactory object i have in a private var and adjusts that volume by 40% of the .flv's volume. This seems like it should work - but doesn't so i am wondering two things. a) can i have multiple sound channels (in this case the stream and the channel i made for bkg music) b) if i can why do my sound transformations not get implemented on this music track. I also tried to explcitly set the music volume to 0.4 via a sound transform right after i load it - which does not work either.

heres the code

ActionScript Code:
trace("current vol is :" + currentVolume + " And 40% of that is: " + (currentVolume * 0.4));
var st:SoundTransform = new SoundTransform(currentVolume, 0);
stream.soundTransform = st;


View 1 Replies

Actionscript 3 :: Analyze Sound By Channels In Flash Player 11?

Oct 31, 2011

referring to my old question AS3: Analyzing sound spectrums one by one, one channel at once , with flash player 11 and using Sound.extract,is it possible to extract a single channel and manipulate/visualize it's spectrum? I mean, if i mix 2 sounds into one file, can i control them separately, acting on thing like their soundwaves or volume?

View 1 Replies

IDE :: Create Mono Slide Show?

Jun 10, 2009

I'm trying to create mono slide show, but I managed to be in some strange trouble. Namely mono slide show works nice, but something is wrong or missing in the code, because it puts the picture, that is pulled thru xml on top of everything. One solution is to do picture smaller, but i want to have buttons and info on the picture. It is not layer problem, because layer with picture container is on the last one. Heres the code:


View 1 Replies

ActionScript 2.0 :: Recreating MONO*Crafts Effect?

Feb 27, 2003

I saw this awesome effect when you press "enter" on MONO*Crafts site that I tried to recreate it!

PHP Code:



View 1 Replies

Flash - Calculate Mono/Complementary/Triadic/Analogous From Specific Color

Mar 10, 2010

I know this is possible to be done using javascript, and I presume I could get the values to flash calling js, but I'm looking for any AS3 library/code that does the same.

js examples: [URL]

View 1 Replies

Alter Frequency Of An MP3 File?

Jan 26, 2010

Does anybody know a purely PHP based way to alter the frequency of an MP3 file?

A client's website is utilizing a Flash based MP3 player to play some audio.The client is producing the audio herself.

The trouble is that the tools that she is producing it with, and is familiar with, automatically produces MP3 files with a frequency of 48000hz, while some versions of Flash have trouble playing anything with a frequency differing from 44100khz.

View 1 Replies

ActionScript 2.0 :: Frequency Of A Value In Array?

Jun 8, 2008

I have an array with duplicate values (strings) in it. I would like to have a function that i can call with the string-parameter and returns how many times this string is in the array.

View 7 Replies

Arrays :: How To Use Cepstral And Get The Fundamental Frequency From FFT

Feb 7, 2011

Recently I asked this question: How to get the fundamental frequency from FFT? (you don't actually need to read it) My doubt right now it: how to use the cepstral algorithm? I just don't know how to use it because the only language that I know is ActionScript 3, and for this reason I have few references about the native functions found in C, Java and so on, and how I should implement them on AS. Most articles are about these languages) The articles I found about cepstral to find the fundamental frequency of a FFT result told me that I should do this:


View 3 Replies

ActionScript :: Ratio And Frequency - Even Dispersion

Sep 2, 2011

I have the following:
package {
import flash.display.MovieClip;
public class Ratio extends MovieClip {
private var counter:Number;
private var frequency:Number;
private var ratio:String;
[Code] .....

This outputs something like:
0: true
1: true
2: false
3: false

But what I would actually like is:
0: true
1: false
2: true
3: false
i.e. more even dispersion (alternation) there a way to do this?

View 1 Replies

ActionScript 2.0 :: Frequency Of Unique Item In Array?

Apr 11, 2007

how to remove duplicates from an array. But now I need to know how many times each unique item is in an array.




View 4 Replies

ActionScript 3.0 :: Merge Two Alpha Channels?

May 4, 2010

What is the best way to merge two alpha channels? What I want to do is, given channel values, use the value which is greater.

I tried using .merge(), but it appears to only blend channels with a linear value between current and destination value.

I looked into .draw(), which would work well using a blendmode like LIGHTEN, but it doesn't allow drawing per channel so I can't target the alpha channel only. The ALPHA blendmode didn't seem to do anything when used with .draw(), and ERASE gives an unwanted hard edge.

I also looked into .copyChannel(), but it doesn't allow any blending logic, merely copying a rectangular region from one BitmapData to another.

View 5 Replies

Flex :: Using NetConnection And URLStream To Send/receive Data At High Frequency

Jun 17, 2009

I'm writing a Comet-like app using Flex on the client and my own hand-written server.

I need to be able to send short bursts of data from the client at quite a high frequency (e.g. of the order of 10ms between sends).

I also need the server to push short bursts of data at a similarly high frequency.

I'm using to send the data to the server, and URLStream (with chunked encoding) to push the data from the server to the client.

What I've found is that the data isn't being sent/received as soon as it's available. For example, in IE, it seems the data is sent every 200ms rather than as soon as is called. Similarly, URLStream isn't making the data available as soon as the server is sending it.

Judging by the difference in behaviour between the browsers, it seems as though the Flash Player (version 10) is relying on the host browser to do all the comms. Can anyone confirm this? Update: This is very likely as only the host browser would know about the proxy settings that might be set.

I've tried using the Socket class and there's no problem with speed there: it works perfectly. However, I'd like to be able to use HTTP-based (port 80) connections so that my app can run in heavily fire-walled environments (I tried using a Socket over port 80, but that has its problems).

Incidentally, all development/testing has been done on an internal LAN, so bandwidth/latency is not an issue.

Update: The data being sent/received is in small packets and doesn't need to be in any particular format. For example, I might need to send a short array of Numbers, and this could either be encoded in AMF (e.g. via or could be put into GET parameters (e.g. using sendToURL()). The main point of my question is really to see whether anyone else has experienced the same problem in calling NetConnection/URLStream frequently, and whether there is a workaround (it's also possible that the fault lies with my server code of course, rather than Flash).

View 2 Replies

ActionScript 3.0 :: Operator In Channels For Perlin Noise?

Jul 9, 2009

got this code from herehttp:


View 1 Replies

Flex :: Create Channels At Runtime Using BlazeDS?

Aug 12, 2010

So as you may or may not know, BlazeDS (open source version of LiveCycle Data Services) is a nice way to get your server-side Java and client-side Flex application to play together. Unfortunately, it does have several pitfalls that need to be corrected. I'll try to explain one of them here.

All of BlazeDS's configuration is written via XML files in the flex/ folder of your webapp. The default names are separated for clarity, such as services-config.xml, remoting-config.xml, messaging-config.xml, etc. In these configuration files (particularly services-config.xml), Channels are defined; these setup URIs and objects used to capture and send information between the server and the client. In these config files, it is quite common to use a syntax like so:


Unfortunately, what they don't tell you is that some of these key-in replacements (ie: {context.root}) are not replaced dynamically upon execution but upon compilation of the WAR file you intend to distribute. Obviously not a good idea when switching domains.

So, instead I seek to dynamically define these channels. According to the documentation, that's all good and fine, but it only works if the channel already exists when the webapp is launched. I feel like that sort of defeats the point. So my question is, how do you truly create channels dynamically so that both the client and the server recognize their existence?

View 1 Replies

Actionscript 3 :: Working With Multiple Sounds & Channels

Nov 17, 2011

Are there any audio management libraries for ActionScript 3? The more tailored they are for game development the better.I'm finding it hard to understand and work with multiple channels, which is making a lot of my audio sound screwy and cancel each other out, etc. I've been working on an RPG that can at a given time have quite a number of sounds playing such as environmental noise (like opening doors, thunder, rain, etc), walking enemies, inventory sounds (for events like dropping an item into your inventory), passive spell-casting sounds, voice clips, weapon swinging etc. Alternatively, if there are any good resources that explain how to use multiple sound channels strategically.

View 1 Replies

ActionScript 3.0 :: Convert RGB Channels To Between 0-1 For Pixel Bender?

Nov 20, 2010

Simple question here, lets say you have a color in RGB, white:255, 255, 255Pixel bender needs values between 0-1 not 0-255.So white = 1, 1, 1What about:134, 132, 123I dont know how to work it out.

View 3 Replies

Actionscript :: Calculate The Average Frequency Of An Audio Recording Captured As A ByteArray In Flash?

Nov 30, 2011

Keeping it simple for now but assuming i have a ByteArray full of sample data is it possible to calculate the average frequency (thus a pitch) from the entire recording? Is this along the right lines? p = 69 + 12 x log2(f/440hz) ...

View 1 Replies

Actionscript 3 :: Merging Two Bitmapdata Objects' Alpha Channels?

Aug 22, 2011

i have the following situation:

one drawing layer (graphics object with lineTo, etc.)

one png with an alpha channel (supposed to serve only as a mask)

now i want to be able to only draw lines within an area restricted by the png mask.

i am trying like this:

var bitmapData:BitmapData = new BitmapData( 320, 320 );
bitmapData.draw( drawingLayer );
bitmapData.copyChannel( maskBitmapData, new Rectangle( 0, 0, 320, 320 ), new Point( 0, 0 ), BitmapDataChannel.ALPHA, BitmapDataChannel.ALPHA );

now the borders get cut off fine, but i get a black background, since the drawing layer has an alpha between the drawn lines (and it should remain like this) and the mask bitmap has an alpha outside the shape. so naturally the mask's alpha replaces the drawing layer's.

i tried it with merge, copyPixels and also with just setting the mask property on the drawing layer (i set everything to cacheAsBitmap) but to no avail.


when trying to use a mask i tried it with

<s:BitmapImage id="mask" source="@Embed(source='...')" cacheAsBitmap="true" />

and also as

private const BodyMask:Class;
var maskBitmap:Bitmap = new BodyMask();

and assigned them to the mask property of a s:Group element (cacheAsBitmap=true) where the operations on the graphics object occured. i also tried reassigning the mask after each draw operation.

View 1 Replies

Media Server :: When Using RTMFP Protocol FMS Doesn't Operate In Channels

Nov 26, 2010

I'm developing an online meeting system with audio/video sharing, using Adobe Flex 4 and Flash Media Server 4. I'm using the RTMFP protocol to make the transmission of audio/video which increases considerably the performance. The trouble now is that i must record the audio/video transmitted, but i figured out that when using the RTMFP protocol the FMS doesn't operate in the channels. So, how could i make FMS record this channels?

View 1 Replies

Java :: Support Both HTTP And HTTPS Channels In Flex/BlazeDS?

Jun 17, 2009

I've been trying to find the right configuration for supporting both http/s requests in a Flex app. I've read all the docs and they allude to doing something like the following:

<channel ref="my-secure-amf">

I'm running with Tomcat 5.5.17 and Java 5.The BlazeDS docs say this is the best practice. Is there a better way? With this config, there seems to be 2-3 retries associated with each channel defined in the default-channels element so it always takes ~20s before the my-amf channel connects via a http request. Is there a way to override the 2-3 retries to say, 1 retry for each channel?

View 4 Replies

ActionScript 2.0 :: Define HitArea Of External Assets With Alpha Channels (for Example PNG)?

Nov 14, 2010

I copied this from some other forum because it's explain well "...Let�s say you are loading in an external asset that has an alpha channel, such as a PNG. Now let�s say that you want that asset to act like a button, with rollover and click actions. No problem. No reason you can't do that. But, actually, there is a problem. The hit area for that external asset will be its entire bounding box. Take this octy image for example: Even if you rolled over the top left of the image where it�s totally transparent, it will still trigger rollover actions, which is certainly not ideal and could potentially be very confusing for a user..."


View 2 Replies

Copyrights 2005-15, All rights reserved