• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

1stplugins

FileMaker plug-ins and Reverse Engineering

  • Plugins
    • MediaManager
  • Services
    • Reverse Engineering
    • FileMaker Plug-Ins
  • About
    • About Us
    • Contact Us
    • Terms of Use of the Website and Privacy Policy
  • Store
    • Terms and Conditions
    • Warranty Claim Guidelines
    • Contract Withdrawal Form
    • Warranty Claim Report

Media_FadeSound

Media_FadeSound ( container ; startTime ; endTime ; level ; inOrOut )

Media_FadeSound will apply a fade in or out to a specific portion of a sound file.

Parameter Description
container Location of the sound file.
startTime Time in original sound to begin fade (HH:MM:SS.S).
endTime Time in original sound to end fade (HH:MM:SS.S).
level Final fade level (1 = full sound at start; 0 = no sound at start).
inOrOut 1 = fade out; 0 = fade in.

The result must be returned to a container field.

You can use negative values in both the startTime and endTime parameters to refer to a position from the end of the file. For instance, when startTime is 00:00:00 and endTime is -00:00:00, the entire sound is referenced. To reference the last five seconds for example, use startTime = -00:00:05 and endTime = -00:00:00.

If startTime is invalid, it is set to 00:00:00. If endTime is invalid, it is set to the end of the sound. Level is reset to 0 for fade out and 1.0 for fade in.

Use Media_GetLastError to get possible error of this function.

Examples

To have a sound fade out beginning at 5 seconds and finishing within 10 seconds:

Set Field [ MyTable::Sound Result ;
Media_FadeSound (
MyTable::Original Sound ;
"00:00:05" ;# start at
"00:00:10" ;# end at
1 ;# 1 = start w/full volume
1 # 1 = fade out
) ]

To begin fade out 5 seconds from the end of the sound clip:

Set Field [ MyTable::Sound Result ;
Media_FadeSound (
MyTable::Original Sound ;
"-00:00:05" ;# from end
"-00:00:00" ;# = end
1 ;# 1 = start w/full volume
1 # 1 = fade out
) ]

To fade in for the first 3 seconds of a sound clip:

Set Field [ MyTable::Sound Result ;
Media_FadeSound (
MyTable::Original Sound ;
"00:00:00" ;# from start
"00:00:03" ;# end fade at
0 ;# 0 = start w/no volume
0 # 0 = fade in
) ]

Primary Sidebar

Document Functions

Media_CopyItem
Media_CreateAlias
Media_CreateFolder
Media_DeleteItem
Media_ExportField
Media_ExtractInfo
Media_GetDefaultFolder
Media_GetItemInfo
Media_GetName
Media_GetPath
Media_InsertFile
Media_ListDisks
Media_ListFolder
Media_MoveItem
Media_OpenItem
Media_RenameItem
Media_SetDefaultFolder

General and Registration Functions

Media_Get
Media_GetLastError
Media_GetMouseUp
Media_JSONPath
Media_Register
Media_RegisterLicensedEncoder
Media_Set
Media_Version

Image Functions

Media_TApply
Media_TClear
Media_TCrop
Media_TQuad
Media_TResize
Media_TRotate
Media_TScale
Media_TSkew
Media_EffectApply
Media_EffectDialog
Media_ConvertImage
Media_GetImageInfo
Media_GetMetadata
Media_InsertImage
Media_ListImageOutputTypes
Media_SetImageDefaults

Script Steps

Copy Item
Create Alias
Create Folder
Delete Item
Export Field
Get Default Folder
Get Item Property
Move Item
Open Item
Rename Item
Set Default Folder

Sound Functions

Media_Amplify
Media_AppendSound
Media_ConvertSound
Media_CreateSound
Media_DrawWaveform
Media_ExtractSound
Media_FadeSound
Media_GetMetadata
Media_GetSoundInfo
Media_InsertQuickTime
Media_ListSoundOutputFormats
Media_MixSounds
Media_Normalize
Media_PlayPause
Media_PlaySound
Media_RecordSoundFormatDialog
Media_RecordSoundStart
Media_RecordSoundPause
Media_RecordSoundStop
Media_SetMetadata
Media_SoundFormatDialog
Media_StopSound

Video Functions

Media_GetVideoInfo

Footer

Let’s get started on your project.

Get in touch

  • Plugins
  • Services
  • About
  • Store

Copyright ©2006-2020 by 1stplugins, s.r.o. All rights reserved.