Changeset d62906b in ammosreader
- Timestamp:
- 06/30/22 16:34:12 (3 years ago)
- Branches:
- AmmosSource, guix
- Children:
- ee95332
- Parents:
- 6d0f203
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ammosreader/AmmosContainer.py
r6d0f203 rd62906b 37 37 38 38 def frame_sizes(self): 39 return list({each.global_frame_header.frame_length*4 for each in self.__global_frames}) 39 return [each.global_frame_header.frame_length for each in self.__global_frames] 40 41 def unique_frame_sizes(self): 42 return list({each.global_frame_header.frame_length for each in self.__global_frames}) 40 43 41 44 def is_homogenic(self): -
ammosreader/AmmosGlobalFrameHeader.py
r6d0f203 rd62906b 6 6 7 7 8 class AmmosGlobalFrameHeader ():8 class AmmosGlobalFrameHeader: 9 9 """I implement an AMMOS global frame header.""" 10 10 11 MAGIC_WORD = "726574fb" 11 12 HEADER_SIZE = 24 -
sample_scripts/audio_reader.py
r6d0f203 rd62906b 30 30 frame_rate=22050, 31 31 channels=1) 32 print("Start playing audio") 32 33 play(data) -
sample_scripts/iqdw_reader.py
r6d0f203 rd62906b 1 #!/usr/bin/env python32 3 1 import sys 4 import os5 2 6 3 from ammosreader.AmmosIFReader import AmmosIFReader … … 20 17 print("Frequencies", dat_file.container.frequencies()) 21 18 print("Frame types:", dat_file.container.frame_types()) 22 print(" Frame sizes:", dat_file.container.frame_sizes())19 print("Total frame sizes:", sum(dat_file.container.frame_sizes())) 23 20 print("Homogenic:", dat_file.container.is_homogenic())
Note:
See TracChangeset
for help on using the changeset viewer.