Can I save an audio file with modified pitch?

I like to recording and save the audio file with modified pitch. I can to record and change the pitch, but I not found a way to save this audio file with pitch.

local dataFileName = "testfile" if system.getInfo("environment") == "simulator" then dataFileName = dataFileName .. ".aif" else local platformName = system.getInfo( "platformName" ) if "iPhone OS" == platformName then dataFileName = dataFileName .. ".aif" elseif "Android" == platformName then dataFileName = dataFileName .. ".wav" isAndroid = true else print("Unknown OS " .. platformName ) end end local filePath = system.pathForFile( dataFileName, system.DocumentsDirectory ) local rec = media.newRecording( filePath ) local function stopRecording( event ) rec:stopRecording() -- Play back the recording local file = io.open( filePath, "r" ) if file then io.close( file ) local playbackSoundHandle = audio.loadStream( dataFileName, system.DocumentsDirectory ) local a, b =audio.play( playbackSoundHandle, { onComplete=function() audio.dispose( event.handle ) end } ) al.Source( b, al.PITCH, 2 ) end end rec:startRecording() timer.performWithDelay( 2000, stopRecording )

I’m pretty sure the media.newRecording() method only records the microphone on the device, rather than any internal audio. The only way to accomplish this is to play back the recording with the modified pitch  while recording on the device. Again, this will be with the device microphone, so it’ll be like back in the day when your friend made you a high-speed dub of the new Whitesnake album.

I’m old.

I’m pretty sure the media.newRecording() method only records the microphone on the device, rather than any internal audio. The only way to accomplish this is to play back the recording with the modified pitch  while recording on the device. Again, this will be with the device microphone, so it’ll be like back in the day when your friend made you a high-speed dub of the new Whitesnake album.

I’m old.