Creates a Music Segment from the imported MIDI file. A Music Track and a Music Clip are also created.
Function URI
ak.wwise.core.object.set
Arguments
{
"objects": [
{
"object": "\\Interactive Music Hierarchy\\Default Work Unit",
"children": [
{
"type": "MusicSegment",
"name": "New Segment",
"import": {
"files": [
{
"audioFile": "c:\\path\\music.mid"
}
]
}
}
]
}
],
"onNameConflict": "merge"
}
Result
{
"objects": [
{
"children": [
{
"id": "{3B6C9C17-1F33-40DB-80EF-9509C5358334}",
"import": {
"logs": [
{
"message": "Finalizing Importation...",
"severity": "Message"
}
],
"objects": [
{
"id": "{E69EBE64-BE37-4E37-90A1-5B3FBE6BDA8C}",
"name": "music"
},
{
"id": "{A114365D-1393-4429-9823-12B11A7755DC}",
"name": "music"
}
]
},
"name": "New Segment"
}
],
"id": "{6128CF6C-DE55-4E1C-A582-BD27EAD90A13}",
"name": "Default Work Unit"
}
]
}
Refer to Using the Wwise Authoring API (WAAPI) for more information about Wwise Authoring API.