A Python library for serial control of the Denon DN-780R cassette recorder
Accepts a serial port as a string and opens the connection with a baud of 9600, even parity, and runs all_stat
.
Performs a soft reset on the recorder.
Runs status
, tape_stat
, and established
Gets current system status from recorder.
a_stat
Byte.b_stat
Byte.- 'A' No tape
- 'B' Stop
- 'C' Play
- 'D' Record Pause
- 'E' Record
- 'F' Record Mute
- 'G' Fast Forward
- 'H' Rewind
- 'I' Cue
- 'J' Review
- 'K' Play Mute
highspeed
Boolean. 'True' if set to high-speed mode, 'False' if notcounter_a
Integer. Current counter value for mecha Acounter_b
Integer. Current counter value for mecha Bsys_status
Integer.- 1 Normal
- 2 Twin Recording
- 3 Dubbing
Returns CPU version in the format of a 4-digit string.
Gets current recordability of tapes in both mechas.
a_stat
Same as aboveb_stat
Same as abovereca_a
Boolean. True if mecha A side A is recordablereca_b
Boolean. True if mecha A side B is recordablerecb_a
Boolean. True if mecha B side A is recordablerecb_a
Boolean. True if mecha B side B is recordable
Return hardware settings.
dup
Integer. Duplication status, 0 if off, 1 if slave, and 2 if masterrev
Integer. Reverse status, 0 if single, 1 if loop, 2 if relay, 3 if cascadedolbya
Integer. Mecha A Dolby Noise Reduction. 0 if off, 1 if type B, 2 if type Cdira
Boolean. Mecha A play/rec direction. True if forward, False if reversemema
Boolean. Mecha A memory. True if on, False if offdolbyb
Integer. Mecha A Dolby Noise Reduction. 0 if off, 1 if type B, 2 if type Cdirb
Boolean. Mecha A play/rec direction. True if forward (right), False if reverse (left)memb
Boolean. Mecha A memory. True if on, False if off
Note, direction might be different from panel switch if changed via command
Returns recorder model as a string.
Accepts a string indicating which mecha, 'A' or 'B', and sets that mecha to play (or record if that is active).
Accepts a string indicating which mecha, 'A' or 'B', and sets that mecha to stop.
Accepts a string indicating which mecha, 'A' or 'B', and sets that mecha to record.
- Sets to recording standby if mecha status is stop
- Makes a 5sec muted recording if mecha status is record
Accepts a string indicating which mecha, 'A' or 'B', and sets that mecha to paused record.
Accepts a string indicating which mecha, 'A' or 'B', and starts recording on that mecha.
Accepts a string indicating which mecha, 'A' or 'B', and a boolean indicating if music search is to be used and sets the mecha to fast-forward.
Accepts a string indicating which mecha, 'A' or 'B', and fully fast-forwards that mecha to the end. Does not reset the counters.
Accepts a string indicating which mecha, 'A' or 'B', and a boolean indicating if music search is to be used and sets the mecha to rewind.
Accepts a string indicating which mecha, 'A' or 'B', and fully rewinds that mecha back to start and resets the counters.
Accepts a string indicating which mecha, 'A' or 'B', and toggles the direction of that mecha.
Accepts a string indicating which mecha, 'A' or 'B', and toggles the counter memory of that mecha.
Accepts a string indicating which mecha, 'A' or 'B', and resets the counter of that mecha.
Accepts a string indicating which mecha, 'A' or 'B', and an integer for Dolby Noise Reduction type (0 for off, 1 for B, 2 for C), and sets it for that desired mecha.
Starts twin recording.
Starts dubbing.
Accepts a boolean and sets speed for twin recording. True for high speed, False for normal.
Accepts an integer for reversing mode. 0 for single, 1 for loop, 2 for relay, and 3 for cascade.
Ends serial connection to recorder.