-- | Non-realtime score generation.moduleSound.SC3.Server.NRT(encodeNRT,writeNRT,putNRT)whereimportqualifiedData.ByteString.LazyasBimportSound.OpenSoundControlimportSystem.IO-- | Encode and prefix with encoded length.oscWithSize::OSC->B.ByteStringoscWithSizeo=B.appendlbwhereb=encodeOSCol=encode_i32(fromIntegral(B.lengthb))-- | Encode a list of OSC bundles as an NRT score.encodeNRT::[OSC]->B.ByteStringencodeNRT=B.concat.maposcWithSize-- | Write a list of OSC bundles as an NRT score.writeNRT::FilePath->[OSC]->IO()writeNRTfn=B.writeFilefn.encodeNRT-- | Write a list of OSC bundles as an NRT score to a file handle.putNRT::Handle->[OSC]->IO()putNRTh=B.hPuth.encodeNRT