moduleSound.SC3.Server.NRT(encodeNRT,writeNRT,putNRT)whereimportqualifiedData.ByteString.LazyasBimportSound.OpenSoundControlimportSystem.IO-- | Encode and prefix with encoded length.oscWithSize::OSC->B.ByteStringoscWithSizeo=B.appendlbwhereb=encodeOSCNTPol=encode_i32(fromIntegral(B.lengthb))-- | Encode a list of OSC bundles as an NRT score.encodeNRT::[OSC]->B.ByteStringencodeNRTs=B.concat(maposcWithSizes)-- | Write a list of OSC bundles as an NRT score.writeNRT::FilePath->[OSC]->IO()writeNRTfns=B.writeFilefn(encodeNRTs)-- | Write a list of OSC bundles as an NRT score to a file handle.putNRT::Handle->[OSC]->IO()putNRThs=B.hPuth(encodeNRTs)